Recommit "[SCCP] Use SimplifyBinOp for non-integer constant/expressions & overdef."
authorFlorian Hahn <flo@fhahn.com>
Tue, 14 Apr 2020 10:15:20 +0000 (11:15 +0100)
committerFlorian Hahn <flo@fhahn.com>
Tue, 14 Apr 2020 10:48:52 +0000 (11:48 +0100)
commit38609fa9e42aef24b64055817ed01cd015648608
tree4f868ea1a05cd281a5258f8e07e995424409acd3
parent3bdfa966ecd2a0c9b938f4c1e297000dbbb4a9b2
Recommit "[SCCP] Use SimplifyBinOp for non-integer constant/expressions & overdef."

This includes a fix reported with simplifications in the presence of
NaN.

This reverts the revert commit 06408451bf12d4baed1fb1312d8af6e6bbb6a797.
llvm/lib/Transforms/Scalar/SCCP.cpp
llvm/test/Transforms/SCCP/float-nan-simplification.ll [new file with mode: 0644]
llvm/test/Transforms/SCCP/ub-shift.ll
llvm/test/Transforms/SCCP/vector-bitcast.ll