mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-04 17:58:22 +00:00
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
This commit is contained in:
parent
457dd829ad
commit
6b5bd5857d
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user