aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2018-08-10 20:30:35 +0000
committerSanjay Patel <spatel@rotateright.com>2018-08-10 20:30:35 +0000
commit85e17bb195232bce8ffdd3254166e9323bca24f6 (patch)
treec6292d91cb55188018f33696dc379f912788479f /llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
parent99a1ce97172ec0f849eba11dfd48e2fbaade412b (diff)
downloadllvm-85e17bb195232bce8ffdd3254166e9323bca24f6.zip
llvm-85e17bb195232bce8ffdd3254166e9323bca24f6.tar.gz
llvm-85e17bb195232bce8ffdd3254166e9323bca24f6.tar.bz2
[InstCombine] rearrange code for foldSelectBinOpIdentity; NFCI
This is a retry of rL339439 with a fix for the problem that caused the original commit to be reverted at rL339446. That problem was that the compare can be integer while the binop is FP or vice-versa, so we need to use the binop type when we ask for the identity constant. A test to guard against the problem was added at rL339453. llvm-svn: 339469
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp')
0 files changed, 0 insertions, 0 deletions