[ConstantFold] Fix misfolding of icmp with a bitcast FP second operand.
authorAndrew Scheidecker <andrew@scheidecker.net>
Tue, 19 Feb 2019 21:03:20 +0000 (21:03 +0000)
committerAndrew Scheidecker <andrew@scheidecker.net>
Tue, 19 Feb 2019 21:03:20 +0000 (21:03 +0000)
commitbddf892a6d3afadaeeb3c9431c5e89a207739bdc
tree10147c962270f075339237d3451a0eb3f85c5d74
parenta0b97254797873b69ad5087ef748aebcf4426db8
[ConstantFold] Fix misfolding of icmp with a bitcast FP second operand.

In the process of trying to eliminate the bitcast, this was producing a
malformed icmp with FP operands.

Differential revision: https://reviews.llvm.org/D51215

llvm-svn: 354380
llvm/lib/IR/ConstantFold.cpp
llvm/test/Transforms/ConstProp/bitcast.ll