Try turning icmp(bitcast(x), bitcast(y)) into icmp(bitcast(bitcast(x)), y) in
commitb4f150b44b10efd07b2a88484830602476bd8d7a
authorNick Lewycky <nicholas@mxc.ca>
Sun, 20 Sep 2009 05:48:50 +0000 (20 05:48 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sun, 20 Sep 2009 05:48:50 +0000 (20 05:48 +0000)
tree08ace6b453257738cf3bdaffb9a73c3dee86a84c
parenta81653676cd5fc5e695af54399394225e8d89b79
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