[PATCH] D99033: GlobalISel: Constant fold G_PTR_ADD

Jessica Paquette via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 23 09:53:45 PDT 2021


paquette accepted this revision.
paquette added a comment.
This revision is now accepted and ready to land.

LGTM

> I'm wondering if we should just allow regular G_ADD to use pointer types, and reserve G_PTR_ADD for non-integral address spaces.

Maybe? We've had a few cases with AArch64 where we miss optimizations because we forget to handle both G_ADD and G_PTR_ADD.

I guess that knowing immediately that we have a pointer add is nice for matching etc, but I guess we also know that from the LLT.


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

https://reviews.llvm.org/D99033



More information about the llvm-commits mailing list