[SelectionDAG] Teach BaseIndexOffset::match to unwrap the base after looking through...
authorCraig Topper <craig.topper@intel.com>
Mon, 26 Nov 2018 20:16:33 +0000 (20:16 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 26 Nov 2018 20:16:33 +0000 (20:16 +0000)
commit923f463ef23cc3552845bb48398258073f3bc637
tree6349712de61fc4c16f8b80059ac71d8c03b74377
parent2754d1dca47b596d922d9cb64c7c04d744604e5b
[SelectionDAG] Teach BaseIndexOffset::match to unwrap the base after looking through an add/or

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)

Differential Revision: https://reviews.llvm.org/D54818

llvm-svn: 347591
llvm/lib/CodeGen/SelectionDAG/SelectionDAGAddressAnalysis.cpp
llvm/test/CodeGen/X86/consecutive-load-shuffle.ll