commit | 17957ec5e5041d9cfb9f081df44059b84cdd8688 | [log] [tgz] |
---|---|---|
author | Stanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com> | Sat Jun 23 04:01:28 2018 +0000 |
committer | Stanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com> | Sat Jun 23 04:01:28 2018 +0000 |
tree | 856fe61f188302f617c7facd02f0d69c06d1860f | |
parent | 00f00bab006fbb2cbcd3b0e83ec500b231610264 [diff] |
Fix invariant fdiv hoisting in LICM FDiv is replaced with multiplication by reciprocal and invariant reciprocal is hoisted out of the loop, while multiplication remains even if invariant. Switch checks for all invariant operands and only invariant denominator to fix the issue. Differential Revision: https://reviews.llvm.org/D48447 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@335411 91177308-0d34-0410-b5e6-96231b3b80d8