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.
Details
Details
Diff Detail
Diff Detail
Event Timeline
llvm/include/llvm/Target/GlobalISel/Combine.td | ||
---|---|---|
293 | Maybe put these under identity_combines? |
Comment Actions
Great, thanks for the review! I don't have commit access. Would be great if someone could commit on my behalf.
Maybe put these under identity_combines?