]> granicus.if.org Git - llvm/commit
[DAG] Fold FrameIndex offset into BaseIndexOffset analysis. NFCI.
authorNirav Dave <niravd@google.com>
Thu, 29 Jun 2017 15:48:11 +0000 (15:48 +0000)
committerNirav Dave <niravd@google.com>
Thu, 29 Jun 2017 15:48:11 +0000 (15:48 +0000)
commit8ebfef5200cfe8033ddf57531e0f3d28acfc584b
treea482e6d510c0a9f4aae11c71c8ba188aafb90e1a
parenta6d135a4a72eb012f74bb4c5af9a91d1a89c3567
[DAG] Fold FrameIndex offset into BaseIndexOffset analysis. NFCI.

Relanding after restricting equalBaseIndex to not erroneuosly consider
a FrameIndices stemming from alloca from being comparable as its
offset is set post-selectionDAG.

Pull FrameIndex comparision reasoning from DAGCombiner::isAlias to
general BaseIndexOffset.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306688 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/SelectionDAGAddressAnalysis.h
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/CodeGen/SelectionDAG/SelectionDAGAddressAnalysis.cpp