[PATCH] D127392: [AggressiveInstCombine] Combine consecutive loads which are being merged to form a wider load.

Biplob Mishra via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 22 02:18:44 PDT 2022


bipmis added a comment.

In D127392#3807970 <https://reviews.llvm.org/D127392#3807970>, @nikic wrote:

> From a cursory look it looks fine, I assume @dmgreen has reviewed in detail :)
>
> I have one note (that can be addressed later): There's currently a check that the loads have the same size. Does that mean that if you have a partially folded pattern (e.g. one i16 load plus two i8 loads) that it will not get folded? If so, this seems like something we should relax (later).

Thats correct. Currently we are folding loads of same size only in a chain. So for above case if two i8 loads belong to single lower chain they can be folded. 
Agreed. This is more to do with a stricter basic implementation first. We can relax this later.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D127392/new/

https://reviews.llvm.org/D127392



More information about the llvm-commits mailing list