Try turning icmp(bitcast(x), bitcast(y)) into icmp(bitcast(bitcast(x)), y) in
authorNick Lewycky <nicholas@mxc.ca>
Sun, 20 Sep 2009 05:48:50 +0000 (05:48 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sun, 20 Sep 2009 05:48:50 +0000 (05:48 +0000)
commit55a722bf6a08c684e49f5b56301bfc66d6dc9fd4
tree08ace6b453257738cf3bdaffb9a73c3dee86a84c
parent043b8b5bb2a54133549fbf08e78345a5d086328a
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
lib/VMCore/ConstantFold.cpp
test/Transforms/ConstProp/2009-09-19-ConstFold-i1-ConstExpr.ll