[GISel] Add combine for constant G_PTR_ADD offsets.
https://reviews.llvm.org/D88865
This adds a single combine for GlobalISel to fold:
ptradd (inttoptr C1) C2
Into:
C1 + C2
Additionally, a small test for AArch64 is added.
Patch by pnappa.
[GISel] Add combine for constant G_PTR_ADD offsets. aditya_nandakumar on Oct 13 2020, 5:19 PM. Authored by Tags None Subscribers None
Description
Details
|