[llvm-commits] CVS: llvm/lib/Target/Sparc/SparcRegClassInfo.cpp
Vikram Adve
vadve at cs.uiuc.edu
Sun Sep 21 02:56:01 PDT 2003
Changes in directory llvm/lib/Target/Sparc:
SparcRegClassInfo.cpp updated: 1.27 -> 1.28
---
Log message:
Fix assertion so it doesn't not trip incorrectly.
---
Diffs of the changes:
Index: llvm/lib/Target/Sparc/SparcRegClassInfo.cpp
diff -u llvm/lib/Target/Sparc/SparcRegClassInfo.cpp:1.27 llvm/lib/Target/Sparc/SparcRegClassInfo.cpp:1.28
--- llvm/lib/Target/Sparc/SparcRegClassInfo.cpp:1.27 Mon Sep 1 15:00:08 2003
+++ llvm/lib/Target/Sparc/SparcRegClassInfo.cpp Sun Sep 21 02:55:27 2003
@@ -213,10 +213,10 @@
IGNode *NeighIGNode = Node->getAdjIGNode(n);
LiveRange *NeighLR = NeighIGNode->getParentLR();
- if (NeighLR->hasColor() &&
- NeighLR->getType() == Type::DoubleTy) {
- assert(IsColorUsedArr[ NeighLR->getColor() ] &&
- IsColorUsedArr[ NeighLR->getColor()+1 ]);
+ if (NeighLR->hasColor()) {
+ assert(IsColorUsedArr[ NeighLR->getColor() ]);
+ if (NeighLR->getType() == Type::DoubleTy)
+ assert(IsColorUsedArr[ NeighLR->getColor()+1 ]);
} else if (NeighLR->hasSuggestedColor() &&
NeighLR-> isSuggestedColorUsable() ) {
More information about the llvm-commits
mailing list