diff options
author | Stanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com> | 2018-06-23 04:01:28 +0000 |
---|---|---|
committer | Stanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com> | 2018-06-23 04:01:28 +0000 |
commit | d8c9374797ccb9520b6ef7bdb29ed3a4bb5a1be2 (patch) | |
tree | 3bff07eac1e07ddd15248d60835e6c2679c817c1 /llvm/lib/Target/TargetMachine.cpp | |
parent | 96917d7912bdcf880b92e1bd8bcf83ccdebfab4d (diff) | |
download | bcm5719-llvm-d8c9374797ccb9520b6ef7bdb29ed3a4bb5a1be2.tar.gz bcm5719-llvm-d8c9374797ccb9520b6ef7bdb29ed3a4bb5a1be2.zip |
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
llvm-svn: 335411
Diffstat (limited to 'llvm/lib/Target/TargetMachine.cpp')
0 files changed, 0 insertions, 0 deletions