mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-24 08:24:33 +00:00
Add a GVN pass, using the value numbering code I developed for GVNPRE and the
load elimination code from RedundantLoadElimination. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40469 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
10
test/Transforms/GVN/basic.ll
Normal file
10
test/Transforms/GVN/basic.ll
Normal file
@ -0,0 +1,10 @@
|
||||
; RUN: llvm-as < %s | opt -gvn | llvm-dis | not grep {%z2 =}
|
||||
|
||||
define i32 @main() {
|
||||
block1:
|
||||
%z1 = bitcast i32 0 to i32
|
||||
br label %block2
|
||||
block2:
|
||||
%z2 = bitcast i32 0 to i32
|
||||
ret i32 %z2
|
||||
}
|
Reference in New Issue
Block a user