mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-27 06:35:23 +00:00
6f41c1352b
Summary: Lately, I have submitted a number of patches to fix bugs that only occurred when using the same pass manager to compile multiple modules (generally these bugs are failure to reset some persistent state). Unfortunately I don't think there is currently a way to test that from the command line. This adds a very simple flag to both llc and opt, under which the tools will simply re-run their respective pass pipelines using the same pass manager on (a clone of the same module). Additionally, we verify that both outputs are bitwise the same. Reviewers: yaron.keren Subscribers: loladiro, yaron.keren, kcc, llvm-commits Differential Revision: http://reviews.llvm.org/D14965 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254774 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
335 B
LLVM
15 lines
335 B
LLVM
; The pass here doesn't matter (we use deadargelim), but test
|
|
; that the -run-twice options exists, generates output, and
|
|
; doesn't crash
|
|
; RUN: opt -run-twice -deadargelim -S < %s | FileCheck %s
|
|
|
|
; CHECK: define internal void @test
|
|
define internal {} @test() {
|
|
ret {} undef
|
|
}
|
|
|
|
define void @caller() {
|
|
call {} @test()
|
|
ret void
|
|
}
|