summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGAddressAnalysis.cpp
diff options
context:
space:
mode:
authorNirav Dave <niravd@google.com>2017-12-22 19:33:56 +0000
committerNirav Dave <niravd@google.com>2017-12-22 19:33:56 +0000
commit9c26e92aabcf517187a2e6872431d7a54a6c7e63 (patch)
tree9790f62765231a90a98783ed3b2634e4e7a263fb /llvm/lib/CodeGen/SelectionDAG/SelectionDAGAddressAnalysis.cpp
parent6b8141acdd831c9e7067c700c7624480fbe8b331 (diff)
downloadbcm5719-llvm-9c26e92aabcf517187a2e6872431d7a54a6c7e63.tar.gz
bcm5719-llvm-9c26e92aabcf517187a2e6872431d7a54a6c7e63.zip
Revert "[DAG] Integrate findBaseOffset address analyses to BaseIndexOffset. NFCI."
which was causing miscompilations in for some test-suite components. This reverts commit 3e9de9ff0f3162920a2a3cba51c7dc14b54b4d16. llvm-svn: 321380
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGAddressAnalysis.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGAddressAnalysis.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGAddressAnalysis.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGAddressAnalysis.cpp
index d5980919d03..544da362be6 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGAddressAnalysis.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGAddressAnalysis.cpp
@@ -37,23 +37,6 @@ bool BaseIndexOffset::equalBaseIndex(BaseIndexOffset &Other,
return true;
}
- // Match Constants
- if (auto *A = dyn_cast<ConstantPoolSDNode>(Base))
- if (auto *B = dyn_cast<ConstantPoolSDNode>(Other.Base)) {
- bool IsMatch =
- A->isMachineConstantPoolEntry() == B->isMachineConstantPoolEntry();
- if (IsMatch) {
- if (A->isMachineConstantPoolEntry())
- IsMatch = A->getMachineCPVal() == B->getMachineCPVal();
- else
- IsMatch = A->getConstVal() == B->getConstVal();
- }
- if (IsMatch) {
- Off += B->getOffset() - A->getOffset();
- return true;
- }
- }
-
const MachineFrameInfo &MFI = DAG.getMachineFunction().getFrameInfo();
// Match non-equal FrameIndexes - If both frame indices are fixed
OpenPOWER on IntegriCloud