commit | a0c9939873c404f272b3e0abb102c335146764fe | [log] [tgz] |
---|---|---|
author | Shuxin Yang <shuxin.llvm@gmail.com> | Thu Mar 14 18:08:26 2013 +0000 |
committer | Shuxin Yang <shuxin.llvm@gmail.com> | Thu Mar 14 18:08:26 2013 +0000 |
tree | 84f6e3312578dad30c29dacf3e2a37323695fa74 | |
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