This is an archive of the discontinued LLVM Phabricator instance.

[SelectionDAG] Teach BaseIndexOffset::match to unwrap the base after looking through an add/or
ClosedPublic

Authored by craig.topper on Nov 21 2018, 3:48 PM.

Details

Summary

We might find a target specific node that needs to be unwrapped after we look through an add/or. Otherwise we get inconsistent results if one pointer is just X86WrapperRIP and the other is (add X86WrapperRIP, C)

The test that changed hasn't been commited yet. I'll commit if/when this patch is approved.

Diff Detail

Event Timeline

craig.topper created this revision.Nov 21 2018, 3:48 PM
niravd accepted this revision.Nov 24 2018, 6:10 AM

LGTM.

This revision is now accepted and ready to land.Nov 24 2018, 6:10 AM
This revision was automatically updated to reflect the committed changes.