diff options
author | Sanjay Patel <spatel@rotateright.com> | 2019-07-26 11:19:18 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2019-07-26 11:19:18 +0000 |
commit | c229cfeb7a7e8c9fefafac6b8576f8a0aa1dee3a (patch) | |
tree | 1aeec4178d79bc1fab3860f49362ffdf07262c13 /lldb/source/Commands/CommandObjectPlatform.cpp | |
parent | d93e8ece7b6223fde22b7c1aa1de493b44bbd20d (diff) | |
download | bcm5719-llvm-c229cfeb7a7e8c9fefafac6b8576f8a0aa1dee3a.tar.gz bcm5719-llvm-c229cfeb7a7e8c9fefafac6b8576f8a0aa1dee3a.zip |
[InstCombine] remove flop from lerp patterns
(Y * (1.0 - Z)) + (X * Z) -->
Y - (Y * Z) + (X * Z) -->
Y + Z * (X - Y)
This is part of solving:
https://bugs.llvm.org/show_bug.cgi?id=42716
Factoring eliminates an instruction, so that should be a good canonicalization.
The potential conversion to FMA would be handled by the backend based on target
capabilities.
Differential Revision: https://reviews.llvm.org/D65305
llvm-svn: 367101
Diffstat (limited to 'lldb/source/Commands/CommandObjectPlatform.cpp')
0 files changed, 0 insertions, 0 deletions