diff options
author | Sanjay Patel <spatel@rotateright.com> | 2018-08-08 14:29:08 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2018-08-08 14:29:08 +0000 |
commit | a194b2d2ffdd4c8400324fb5e105edd1f7a8d698 (patch) | |
tree | 839ccff46529aeeda40bd2f2bdf0ddb1b7c8b69a /llvm/lib/Target/PowerPC/PPCTargetMachine.cpp | |
parent | 9f5b8f093eec7c71494d45cce89593adea37f5dd (diff) | |
download | bcm5719-llvm-a194b2d2ffdd4c8400324fb5e105edd1f7a8d698.tar.gz bcm5719-llvm-a194b2d2ffdd4c8400324fb5e105edd1f7a8d698.zip |
[InstCombine] fold fneg into constant operand of fmul/fdiv
This accounts for the missing IR fold noted in D50195. We don't need any fast-math to enable the negation transform.
FP negation can always be folded into an fmul/fdiv constant to eliminate the fneg.
I've limited this to one-use to ensure that we are eliminating an instruction rather than replacing fneg by a
potentially expensive fdiv or fmul.
Differential Revision: https://reviews.llvm.org/D50417
llvm-svn: 339248
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCTargetMachine.cpp')
0 files changed, 0 insertions, 0 deletions