[PATCH] D109528: [AArch64][GlobalISel] Add a new reassociation for G_PTR_ADDs.

Amara Emerson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 13 17:34:54 PDT 2021


aemerson added a comment.

In D109528#2996869 <https://reviews.llvm.org/D109528#2996869>, @foad wrote:

> Instead of optimizing three specific cases do you think it's worth doing something more general, like traversing a whole tree of G_PTR_ADD and G_ADD expressions, collecting the pointers / ints / constant-offsets, and then reassembling them in an optimal order?

While a nice idea in theory, because of the trickery around optimizing for the best addressing modes, I don't think it's feasible without a lot of added complexity.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D109528



More information about the llvm-commits mailing list