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 | 55a722bf6a08c684e49f5b56301bfc66d6dc9fd4 (patch) | |
tree | 08ace6b453257738cf3bdaffb9a73c3dee86a84c /test/Transforms/ConstProp | |
parent | 043b8b5bb2a54133549fbf08e78345a5d086328a (diff) | |
download | llvm-55a722bf6a08c684e49f5b56301bfc66d6dc9fd4.tar.gz llvm-55a722bf6a08c684e49f5b56301bfc66d6dc9fd4.tar.bz2 llvm-55a722bf6a08c684e49f5b56301bfc66d6dc9fd4.tar.xz |
Try turning icmp(bitcast(x), bitcast(y)) into icmp(bitcast(bitcast(x)), y) in
the hopes that the two bitcasts will merge.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82371 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/ConstProp')
-rw-r--r-- | test/Transforms/ConstProp/2009-09-19-ConstFold-i1-ConstExpr.ll | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Transforms/ConstProp/2009-09-19-ConstFold-i1-ConstExpr.ll b/test/Transforms/ConstProp/2009-09-19-ConstFold-i1-ConstExpr.ll index debf9a8e5c..0a40c0ce2c 100644 --- a/test/Transforms/ConstProp/2009-09-19-ConstFold-i1-ConstExpr.ll +++ b/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 + |