aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python
diff options
context:
space:
mode:
authorBjorn Pettersson <bjorn.a.pettersson@ericsson.com>2021-10-06 12:58:52 +0200
committerBjorn Pettersson <bjorn.a.pettersson@ericsson.com>2021-10-07 19:36:30 +0200
commit7f93bb4a5827ffce67a469da3ac0e23194538441 (patch)
tree92072386e120b7d19798d2a568008c7cb04150a1 /lldb/source/Plugins/ScriptInterpreter/Python
parentb0c34e0dab7820fa4dc442ae8f5118064c306285 (diff)
downloadllvm-7f93bb4a5827ffce67a469da3ac0e23194538441.zip
llvm-7f93bb4a5827ffce67a469da3ac0e23194538441.tar.gz
llvm-7f93bb4a5827ffce67a469da3ac0e23194538441.tar.bz2
[LoopRotate] Forget SCEV values in RewriteUsesOfClonedInstructions
This patch fixes problems reported in PR51981. When rotating a loop it isn't enough to just forget SCEV for that loop nest. When rotating we might clone some instructions from the old header into the preheader, and insert new PHI nodes to merge values together. There could be users of the original value that are updated to use the PHI result. And those users were not necessarily depending on a PHI node earlier, so they weren't cleaned up when just forgetting all SCEV:s for the loop nest. So we need to explicitly forget those values to avoid invalid cached SCEV expressions. Reviewed By: fhahn, mkazantsev Differential Revision: https://reviews.llvm.org/D110813
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions