[llvm] [LICM] Sink comparisons that enable loop deletion (PR #223951)
Pengcheng Wang via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 16 21:01:35 PDT 2026
wangpc-pp wrote:
> I agree with @antoniofrighetto it doens't have much to do with invariantness, I think `llvm::rewriteLoopExitValues` VPUtils.cpp is probably a better place to do this since it's already rewriting the exit value.
>
> Here's something that Fable 5.1 wrote which catches the test cases in this PR: [indvars-rewrite-icmp-exit-values.patch](https://github.com/user-attachments/files/32291175/indvars-rewrite-icmp-exit-values.patch)
Thanks! I will try to implement it in `llvm::rewriteLoopExitValues`. BTW, the link to your patch is invalid?
https://github.com/llvm/llvm-project/pull/223951
More information about the llvm-commits
mailing list