mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Enhance instcombine to be more aggressive about folding casts of
operations of casts. This implements InstCombine/zext-fold.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40726 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
12
test/Transforms/InstCombine/zext-fold.ll
Normal file
12
test/Transforms/InstCombine/zext-fold.ll
Normal file
@@ -0,0 +1,12 @@
|
||||
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep {zext } | wc -l | grep 1
|
||||
; PR1570
|
||||
|
||||
define i32 @test2(float %X, float %Y) {
|
||||
entry:
|
||||
%tmp3 = fcmp uno float %X, %Y ; <i1> [#uses=1]
|
||||
%tmp34 = zext i1 %tmp3 to i8 ; <i8> [#uses=1]
|
||||
%tmp = xor i8 %tmp34, 1 ; <i8> [#uses=1]
|
||||
%toBoolnot5 = zext i8 %tmp to i32 ; <i32> [#uses=1]
|
||||
ret i32 %toBoolnot5
|
||||
}
|
||||
|
Reference in New Issue
Block a user