diff options
author | Warren Ristow <warren.ristow@sony.com> | 2019-03-18 18:52:35 +0000 |
---|---|---|
committer | Warren Ristow <warren.ristow@sony.com> | 2019-03-18 18:52:35 +0000 |
commit | ad7d0ded2e4543ec3ae61deeb9f63bd28ddee7bd (patch) | |
tree | 12b40be63e37fb944ab42957f1555a7cfbd2d534 /llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp | |
parent | 270249de2bb3d713f89c64bf6bfbdd589c4a33fb (diff) | |
download | bcm5719-llvm-ad7d0ded2e4543ec3ae61deeb9f63bd28ddee7bd.tar.gz bcm5719-llvm-ad7d0ded2e4543ec3ae61deeb9f63bd28ddee7bd.zip |
[SCEV] Guard movement of insertion point for loop-invariants
This reinstates r347934, along with a tweak to address a problem with
PHI node ordering that that commit created (or exposed). (That commit
was reverted at r348426, due to the PHI node issue.)
Original commit message:
r320789 suppressed moving the insertion point of SCEV expressions with
dev/rem operations to the loop header in non-loop-invariant situations.
This, and similar, hoisting is also unsafe in the loop-invariant case,
since there may be a guard against a zero denominator. This is an
adjustment to the fix of r320789 to suppress the movement even in the
loop-invariant case.
This fixes PR30806.
Differential Revision: https://reviews.llvm.org/D57428
llvm-svn: 356392
Diffstat (limited to 'llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp')
0 files changed, 0 insertions, 0 deletions