HomePhabricator

[GISel] Add combine for constant G_PTR_ADD offsets.

Authored by aditya_nandakumar on Oct 13 2020, 5:19 PM.

Description

[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.

Details

Committed
aditya_nandakumarOct 13 2020, 5:26 PM
Parents
rGcc69d211d0d6: [libc++/abi] Clean up uses of <iostream> in the test suite
Branches
Unknown
Tags
Unknown