summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
diff options
context:
space:
mode:
authorBrendon Cahoon <bcahoon@codeaurora.org>2018-08-27 22:04:50 +0000
committerBrendon Cahoon <bcahoon@codeaurora.org>2018-08-27 22:04:50 +0000
commite3841eea87b6f2a0e4d1acfe8749020f60825b6a (patch)
tree2e9e41dae7a6d81b3675dd78778185f93bd2603e /llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
parent211874d2f301da5e4e201a0c9f335e960c396808 (diff)
downloadbcm5719-llvm-e3841eea87b6f2a0e4d1acfe8749020f60825b6a.tar.gz
bcm5719-llvm-e3841eea87b6f2a0e4d1acfe8749020f60825b6a.zip
[Pipeliner] Fix incorrect phi values in the epilog and kernel
The code that generates the loop definition operand for phis in the epilog and kernel is incorrect in some cases. In the kernel, when a phi refers to another phi, the code that updates PhiOp2 needs to include the stage difference between the two phis. In the epilog, the check for using the loop definition instead of the phi definition uses the StageDiffAdj value (the difference between the phi stage and the loop definition stage), but the adjustment is not needed to determine if the current stage contains an iteration with the loop definition. Differential Revision: https://reviews.llvm.org/D51167 llvm-svn: 340782
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud