]> granicus.if.org Git - llvm/commit
[InstCombine] fold fneg disguised as select+fmul (PR43497)
authorSanjay Patel <spatel@rotateright.com>
Sun, 6 Oct 2019 14:15:48 +0000 (14:15 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sun, 6 Oct 2019 14:15:48 +0000 (14:15 +0000)
commit9317048f2d8321f0f22a0e7a673e6a3f78ae7985
tree8465ec1f88cdcdd881e80167b59ac787b6eeca43
parent778c5716972a66a692b96c6c8366e8c5d9a7cb3d
[InstCombine] fold fneg disguised as select+fmul (PR43497)

Extends rL373230 and solves the motivating bug (although in a narrow way):
https://bugs.llvm.org/show_bug.cgi?id=43497

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