mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[GVNSink][NewPM] Add GVNSinkPass to PassRegistry.def
This commit is contained in:
parent
f248f61115
commit
ac65fcae49
@ -202,6 +202,7 @@ FUNCTION_PASS("ee-instrument", EntryExitInstrumenterPass(/*PostInlining=*/false)
|
|||||||
FUNCTION_PASS("make-guards-explicit", MakeGuardsExplicitPass())
|
FUNCTION_PASS("make-guards-explicit", MakeGuardsExplicitPass())
|
||||||
FUNCTION_PASS("post-inline-ee-instrument", EntryExitInstrumenterPass(/*PostInlining=*/true))
|
FUNCTION_PASS("post-inline-ee-instrument", EntryExitInstrumenterPass(/*PostInlining=*/true))
|
||||||
FUNCTION_PASS("gvn-hoist", GVNHoistPass())
|
FUNCTION_PASS("gvn-hoist", GVNHoistPass())
|
||||||
|
FUNCTION_PASS("gvn-sink", GVNSinkPass())
|
||||||
FUNCTION_PASS("helloworld", HelloWorldPass())
|
FUNCTION_PASS("helloworld", HelloWorldPass())
|
||||||
FUNCTION_PASS("instcombine", InstCombinePass())
|
FUNCTION_PASS("instcombine", InstCombinePass())
|
||||||
FUNCTION_PASS("instcount", InstCountPass())
|
FUNCTION_PASS("instcount", InstCountPass())
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
; RUN: opt -gvn-sink -S < %s | FileCheck %s
|
; RUN: opt -gvn-sink -S < %s | FileCheck %s
|
||||||
|
; RUN: opt -passes=gvn-sink -S < %s | FileCheck %s
|
||||||
|
|
||||||
%struct = type {i32, i32}
|
%struct = type {i32, i32}
|
||||||
%struct2 = type { [ 2 x i32], i32 }
|
%struct2 = type { [ 2 x i32], i32 }
|
||||||
@ -68,4 +69,4 @@ bb2: ; preds = %bb
|
|||||||
bb4: ; preds = %bb2, %bb1
|
bb4: ; preds = %bb2, %bb1
|
||||||
%tmp5 = phi i32 [ 0, %bb1 ], [ 1, %bb2 ]
|
%tmp5 = phi i32 [ 0, %bb1 ], [ 1, %bb2 ]
|
||||||
ret void
|
ret void
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user