aboutsummaryrefslogtreecommitdiff
path: root/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
commit6b5bd5857d3ce245b47ed22a5b768d0333cd12f2 (patch)
treec4fd14299347a472c3170a4f7800d89ab1ede08a /lib/Target/X86/InstSelectSimple.cpp
parent457dd829adbf0be5d0a154c684c9e8d75e77c0a6 (diff)
Fix for PR#366. We use getClassB() so that we can handle cast instructions
that cast to bool. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14096 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/InstSelectSimple.cpp')
-rw-r--r--lib/Target/X86/InstSelectSimple.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/InstSelectSimple.cpp b/lib/Target/X86/InstSelectSimple.cpp
index c6afdde1d0..59d56bc743 100644
--- a/lib/Target/X86/InstSelectSimple.cpp
+++ b/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);