HomePhabricator

[LoopUnroll] Fix a crash

Authored by skatkov on Dec 22 2020, 1:40 AM.

Description

[LoopUnroll] Fix a crash

Loop peeling as a last step triggers loop simplification and this
can change the loop structure. As a result all cashed values like
latch branch becomes invalid.

Patch re-structure the code to take into account the possible
changes caused by peeling.

Reviewers: dmgreen, Meinersbur, etiotto, fhahn, efriedma, bmahjour
Reviewed By: Meinersbur, fhahn
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D93686

Details

Committed
skatkovJan 10 2021, 7:19 PM
Reviewer
Meinersbur
Differential Revision
D93686: [LoopUnroll] Fix a crash
Parents
rG5cf73dca77e5: [RISCV] Convert most of the information about RVV Pseudos into bits in TSFlags.
Branches
Unknown
Tags
Unknown