[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelPattern.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Jan 11 20:00:15 PST 2005
Changes in directory llvm/lib/Target/X86:
X86ISelPattern.cpp updated: 1.42 -> 1.43
---
Log message:
Fix a crash compiling povray on UINT_TO_FP from i16.
---
Diffs of the changes: (+1 -3)
Index: llvm/lib/Target/X86/X86ISelPattern.cpp
diff -u llvm/lib/Target/X86/X86ISelPattern.cpp:1.42 llvm/lib/Target/X86/X86ISelPattern.cpp:1.43
--- llvm/lib/Target/X86/X86ISelPattern.cpp:1.42 Tue Jan 11 21:16:09 2005
+++ llvm/lib/Target/X86/X86ISelPattern.cpp Tue Jan 11 22:00:00 2005
@@ -350,8 +350,6 @@
// registers required to compute each node.
ComputeRegPressure(DAG.getRoot());
- //DAG.viewGraph();
-
// Codegen the basic block.
Select(DAG.getRoot());
@@ -1244,7 +1242,7 @@
default: break; // No promotion required.
}
- if (Node->getOpcode() == ISD::UINT_TO_FP && SrcTy == MVT::i32) {
+ if (Node->getOpcode() == ISD::UINT_TO_FP && Result != RealDestReg) {
// If this is a cast from uint -> double, we need to be careful when if
// the "sign" bit is set. If so, we don't want to make a negative number,
// we want to make a positive number. Emit code to add an offset if the
More information about the llvm-commits
mailing list