diff options
author | Shuxin Yang <shuxin.llvm@gmail.com> | 2013-03-14 18:08:26 +0000 |
---|---|---|
committer | Shuxin Yang <shuxin.llvm@gmail.com> | 2013-03-14 18:08:26 +0000 |
commit | a0c9939873c404f272b3e0abb102c335146764fe (patch) | |
tree | 84f6e3312578dad30c29dacf3e2a37323695fa74 /lib/CodeGen/MachineFunction.cpp | |
parent | d9e90b20e28c42bc35d0668cab5c07b44d28f0cc (diff) |
Perform factorization as a last resort of unsafe fadd/fsub simplification.
Rules include:
1)1 x*y +/- x*z => x*(y +/- z)
(the order of operands dosen't matter)
2) y/x +/- z/x => (y +/- z)/x
The transformation is disabled if the new add/sub expr "y +/- z" is a
denormal/naz/inifinity.
rdar://12911472
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177088 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions