]> granicus.if.org Git - llvm/commit
[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)
commitd356001c0982bb499efd1207cec652e8711ee385
treee74fd13a8b2fc232f36c336622268fb16bbd5d10
parent0503e22ae30b5bbdcc98d583bb18c81601db3431
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@354380 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/ConstantFold.cpp
test/Transforms/ConstProp/bitcast.ll