OSDN Git Service

[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)
commitbd1a44f2b85c9bfde85bc83302d68f23bc3f4673
tree76adfe994152a115a146bb631509c6b1dc498262
parent07c5c7fbf9f5cbff886c655d4fd4dc401017f5d4
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346234 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCompares.cpp
test/Transforms/InstCombine/fcmp.ll