llvm-project
e8918c31 - [SCEV] Consider non-volatile memory intrinsics as not having side-effect for forward progress (#150916)

Commit
90 days ago
[SCEV] Consider non-volatile memory intrinsics as not having side-effect for forward progress (#150916) For the attached test: Before the loop-idiom pass, we have a store into the inner loop which is considered simple and one that does not have any side effects on the loop. Post loop-idiom pass, we get a memset into the outer loop that is considered to introduce side effects on the loop. This changes the backedge taken count before and after the pass and hence, the crash with verify-scev. We try to consider non-volatile memory intrinsics as not having side-effect for forward progress to fix the issue. Fixes #149377
Author
Parents
Loading