[llvm-commits] CVS: llvm/lib/Target/SparcV8/SparcV8ISelPattern.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Jul 9 18:56:25 PDT 2005
Changes in directory llvm/lib/Target/SparcV8:
SparcV8ISelPattern.cpp updated: 1.3 -> 1.4
---
Log message:
Change *EXTLOAD to use an VTSDNode operand instead of being an MVTSDNode.
This is the last MVTSDNode.
This allows us to eliminate a bunch of special case code for handling
MVTSDNodes.
Also, remove some uses of dyn_cast that should really be cast (which is
cheaper in a release build).
---
Diffs of the changes: (+1 -1)
SparcV8ISelPattern.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Target/SparcV8/SparcV8ISelPattern.cpp
diff -u llvm/lib/Target/SparcV8/SparcV8ISelPattern.cpp:1.3 llvm/lib/Target/SparcV8/SparcV8ISelPattern.cpp:1.4
--- llvm/lib/Target/SparcV8/SparcV8ISelPattern.cpp:1.3 Sat Jul 9 19:29:18 2005
+++ llvm/lib/Target/SparcV8/SparcV8ISelPattern.cpp Sat Jul 9 20:56:13 2005
@@ -340,7 +340,7 @@
SDOperand Address = N.getOperand(1);
Select(Chain);
unsigned Adr = SelectExpr(Address);
- switch(cast<MVTSDNode>(Node)->getExtraValueType()) {
+ switch(cast<VTSDNode>(Node->getOperand(3))->getVT()) {
case MVT::i32: Opc = V8::LD;
case MVT::i16: Opc = opcode == ISD::ZEXTLOAD ? V8::LDUH : V8::LDSH; break;
case MVT::i8: Opc = opcode == ISD::ZEXTLOAD ? V8::LDUB : V8::LDSB; break;
More information about the llvm-commits
mailing list