[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp
Chris Lattner
lattner at persephone.cs.uiuc.edu
Sun Aug 28 16:39:46 PDT 2005
Changes in directory llvm/lib/Target/PowerPC:
PPC32ISelDAGToDAG.cpp updated: 1.45 -> 1.46
---
Log message:
fix an assertion failure in treeadd
---
Diffs of the changes: (+2 -2)
PPC32ISelDAGToDAG.cpp | 4 ++--
1 files changed, 2 insertions, 2 deletions
Index: llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp
diff -u llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp:1.45 llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp:1.46
--- llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp:1.45 Fri Aug 26 16:23:58 2005
+++ llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp Sun Aug 28 18:39:22 2005
@@ -996,7 +996,7 @@
if (isOprNot(N)) {
unsigned Opc;
SDOperand Val = Select(N->getOperand(0));
- switch (Val.getTargetOpcode()) {
+ switch (Val.isTargetOpcode() ? Val.getTargetOpcode() : 0) {
default: Opc = 0; break;
case PPC::OR: Opc = PPC::NOR; break;
case PPC::AND: Opc = PPC::NAND; break;
@@ -1094,7 +1094,7 @@
MVT::ValueType Ty = N->getValueType(0);
if (Val.Val->hasOneUse()) {
unsigned Opc;
- switch (Val.getTargetOpcode()) {
+ switch (Val.isTargetOpcode() ? Val.getTargetOpcode() : 0) {
default: Opc = 0; break;
case PPC::FABS: Opc = PPC::FNABS; break;
case PPC::FMADD: Opc = PPC::FNMADD; break;
More information about the llvm-commits
mailing list