[PATCH] D124926: [LoopInterchange] New cost model for loop interchange
Congzhe Cao via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 31 11:36:38 PDT 2022
congzhe added a comment.
In D124926#3547912 <https://reviews.llvm.org/D124926#3547912>, @bmahjour wrote:
>> ...With LNICM the load of z is again hoisted into entry, and since entry is the preheader of the original outer loop, after interchange load of z is moved into for.body3.preheader, which is the new outer loop preheader....before this patch, the entry block is not considered part of the loop ...
>
> From what I can see, the "entry" is the preheader of the original outer loop in both cases, so not sure why it's treated differently. Maybe it's better to separate out the INTC, LNICM and LICM checks and show the full context for each set to better understand what's going on?
I thought about too, it might be cleaner to separate out the INTC, LNICM and LICM checks. Patch is updated accordingly.
And thanks for finding out the typos :)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124926/new/
https://reviews.llvm.org/D124926
More information about the llvm-commits
mailing list