summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorScott Michel <scottm@aero.org>2008-11-25 17:29:43 +0000
committerScott Michel <scottm@aero.org>2008-11-25 17:29:43 +0000
commit910046d17472e7d4396059a7199958b82c0751c0 (patch)
tree37f1a7e79d1485f77b88e4a20ff314e34404c2d3 /llvm/lib/Target
parent28a423f42e93dd3bf952d0878b60fa9c5fda9ea8 (diff)
downloadbcm5719-llvm-910046d17472e7d4396059a7199958b82c0751c0.tar.gz
bcm5719-llvm-910046d17472e7d4396059a7199958b82c0751c0.zip
CellSPU:
(a) Remove conditionally removed code in SelectXAddr. Basically, hope for the best that the A-form and D-form address predicates catch everything before the code decides to emit a X-form address. (b) Expand vector store test cases to include the usual suspects. llvm-svn: 60034
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp26
1 files changed, 2 insertions, 24 deletions
diff --git a/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp b/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp
index 159da4639f2..a2144d3e41b 100644
--- a/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp
+++ b/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp
@@ -591,33 +591,11 @@ SPUDAGToDAGISel::SelectXFormAddr(SDValue Op, SDValue N, SDValue &Base,
SDValue &Index) {
if (!SelectAFormAddr(Op, N, Base, Index)
&& !SelectDFormAddr(Op, N, Base, Index)) {
-#if 0
- // Default form of a X-form address is r(r) in operands 0 and 1:
- SDValue Op0 = N.getOperand(0);
- SDValue Op1 = N.getOperand(1);
-
- if ((Op0.getOpcode() == ISD::Register
- || Op.getOpcode() == ISD::CopyFromReg)
- && (Op1.getOpcode() == ISD::Register
- || Op.getOpcode() == ISD::CopyFromReg)) {
- if (Op.getOpcode() == ISD::Register)
- Base = Op0;
- else
- Base = Op0.getOperand(1);
-
- if (Op1.getOpcode() == ISD::Register)
- Index = Op1;
- else
- Index = Op1.getOperand(1);
-
- return true;
- }
-#else
- // All else fails, punt and use an X-form address:
+ // If the address is neither A-form or D-form, punt and use an X-form
+ // address:
Base = N.getOperand(0);
Index = N.getOperand(1);
return true;
-#endif
}
return false;
OpenPOWER on IntegriCloud