[InstCombine] propagate fast-math-flags when folding fcmp+fneg
authorSanjay Patel <spatel@rotateright.com>
Tue, 6 Nov 2018 15:49:45 +0000 (15:49 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 6 Nov 2018 15:49:45 +0000 (15:49 +0000)
commit70282a050196941167b2589bddcf7a24759e15e3
treeab9429ffca304126ff38ff5a451ff54ed2075b49
parente0d2733bf63f08989947f2a6a227d7301c6b11a3
[InstCombine] propagate fast-math-flags when folding fcmp+fneg

This is another part of solving PR39475:
https://bugs.llvm.org/show_bug.cgi?id=39475

This might be enough to fix that particular issue, but as noted
with the FIXME, we're still dropping FMF on other folds around here.

llvm-svn: 346234
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
llvm/test/Transforms/InstCombine/fcmp.ll