summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/InstSelectSimple.cpp
diff options
context:
space:
mode:
authorJohn Criswell <criswell@uiuc.edu>2004-06-09 15:18:51 +0000
committerJohn Criswell <criswell@uiuc.edu>2004-06-09 15:18:51 +0000
commit9095c64147cac1e3a313e3384bbff6a3fec2b0f0 (patch)
tree2b9fc1b40d42e5b8eeed9e2812feeb5974b86209 /llvm/lib/Target/X86/InstSelectSimple.cpp
parent35167c30877cbfe3c67e6e66707a19acee8815ee (diff)
downloadbcm5719-llvm-9095c64147cac1e3a313e3384bbff6a3fec2b0f0.tar.gz
bcm5719-llvm-9095c64147cac1e3a313e3384bbff6a3fec2b0f0.zip
Fix for PR#366. We use getClassB() so that we can handle cast instructions
that cast to bool. llvm-svn: 14096
Diffstat (limited to 'llvm/lib/Target/X86/InstSelectSimple.cpp')
-rw-r--r--llvm/lib/Target/X86/InstSelectSimple.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/InstSelectSimple.cpp b/llvm/lib/Target/X86/InstSelectSimple.cpp
index c6afdde1d0d..59d56bc743c 100644
--- a/llvm/lib/Target/X86/InstSelectSimple.cpp
+++ b/llvm/lib/Target/X86/InstSelectSimple.cpp
@@ -2861,7 +2861,7 @@ void ISel::visitLoadInst(LoadInst &I) {
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);
OpenPOWER on IntegriCloud