diff options
| author | Nick Lewycky <nicholas@mxc.ca> | 2009-09-20 05:48:50 +0000 |
|---|---|---|
| committer | Nick Lewycky <nicholas@mxc.ca> | 2009-09-20 05:48:50 +0000 |
| commit | 4a0345207732c6de918e2a9fafe8326a2ffb2cb0 (patch) | |
| tree | b0e489dd7efe1946eae60e1dce1598f4e58ded25 /llvm/test/Transforms/ConstProp | |
| parent | b1f2e101db658f93827a4e73c6d0ac3eed2d8f5a (diff) | |
| download | bcm5719-llvm-4a0345207732c6de918e2a9fafe8326a2ffb2cb0.tar.gz bcm5719-llvm-4a0345207732c6de918e2a9fafe8326a2ffb2cb0.zip | |
Try turning icmp(bitcast(x), bitcast(y)) into icmp(bitcast(bitcast(x)), y) in
the hopes that the two bitcasts will merge.
llvm-svn: 82371
Diffstat (limited to 'llvm/test/Transforms/ConstProp')
| -rw-r--r-- | llvm/test/Transforms/ConstProp/2009-09-19-ConstFold-i1-ConstExpr.ll | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/Transforms/ConstProp/2009-09-19-ConstFold-i1-ConstExpr.ll b/llvm/test/Transforms/ConstProp/2009-09-19-ConstFold-i1-ConstExpr.ll index debf9a8e5cd..0a40c0ce2c4 100644 --- a/llvm/test/Transforms/ConstProp/2009-09-19-ConstFold-i1-ConstExpr.ll +++ b/llvm/test/Transforms/ConstProp/2009-09-19-ConstFold-i1-ConstExpr.ll @@ -23,3 +23,8 @@ global i1 srem (i1 icmp ult (i8* @X, i8* @Y), i1 icmp ult (i8* @X, i8* @Z)) global i1 urem (i1 icmp ult (i8* @X, i8* @Y), i1 icmp ult (i8* @X, i8* @Z)) ; CHECK-NOT: icmp ; CHECK: i1 false + +global i1 icmp ule (i32* bitcast (i8* @X to i32*), i32* bitcast (i8* @Y to i32*)) +; CHECK-NOT: bitcast +; CHECK: icmp + |

