diff options
author | Aditya Nandakumar <aditya_nandakumar@apple.com> | 2020-07-31 09:41:06 -0700 |
---|---|---|
committer | Aditya Nandakumar <aditya_nandakumar@apple.com> | 2020-07-31 10:13:36 -0700 |
commit | 2144a3bdbba40f0a78d30921088e2c8407ff9dd2 (patch) | |
tree | 43f9c9f896d5be3f94a94fca9bfc4ddf316fa6f5 /llvm/unittests/Support/CommandLineTest.cpp | |
parent | 6c75db8b4bc59eace18143ce086419d37da24746 (diff) | |
download | llvm-2144a3bdbba40f0a78d30921088e2c8407ff9dd2.zip llvm-2144a3bdbba40f0a78d30921088e2c8407ff9dd2.tar.gz llvm-2144a3bdbba40f0a78d30921088e2c8407ff9dd2.tar.bz2 |
[GISel] Add combiners for G_INTTOPTR and G_PTRTOINT
https://reviews.llvm.org/D84909
Patch adds two new GICombinerRules, one for G_INTTOPTR and one for
G_PTRTOINT. The G_INTTOPTR elides ptr2int(int2ptr(x)) to a copy of x, if
the cast is within the same address space. The G_PTRTOINT elides
int2ptr(ptr2int(x)) to a copy of x. Patch additionally adds new combiner
tests for the AArch64 target to test these new combiner rules.
Patch by mkitzan
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
0 files changed, 0 insertions, 0 deletions