[llvm-commits] CVS: llvm/lib/Target/X86/InstSelectSimple.cpp
John Criswell
criswell at cs.uiuc.edu
Wed Jun 9 10:20:01 PDT 2004
Changes in directory llvm/lib/Target/X86:
InstSelectSimple.cpp updated: 1.257 -> 1.258
---
Log message:
Fix for PR#366. We use getClassB() so that we can handle cast instructions
that cast to bool.
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/Target/X86/InstSelectSimple.cpp
diff -u llvm/lib/Target/X86/InstSelectSimple.cpp:1.257 llvm/lib/Target/X86/InstSelectSimple.cpp:1.258
--- llvm/lib/Target/X86/InstSelectSimple.cpp:1.257 Wed Jun 2 00:55:25 2004
+++ llvm/lib/Target/X86/InstSelectSimple.cpp Wed Jun 9 10:18:51 2004
@@ -2861,7 +2861,7 @@
case Instruction::Cast:
// If this is a cast from a signed-integer type to a floating point type,
// fold the cast here.
- if (getClass(User->getType()) == cFP &&
+ if (getClassB(User->getType()) == cFP &&
(I.getType() == Type::ShortTy || I.getType() == Type::IntTy ||
I.getType() == Type::LongTy)) {
unsigned DestReg = getReg(User);
More information about the llvm-commits
mailing list