[llvm-commits] CVS: llvm/lib/Transforms/ExprTypeConvert.cpp
Reid Spencer
reid at x10sys.com
Sat Jan 20 16:30:04 PST 2007
Changes in directory llvm/lib/Transforms:
ExprTypeConvert.cpp updated: 1.121 -> 1.122
---
Log message:
For PR970: http://llvm.org/PR970 :
Clean up handling of isFloatingPoint() and dealing with PackedType.
Patch by Gordon Henriksen!
---
Diffs of the changes: (+2 -2)
ExprTypeConvert.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/Transforms/ExprTypeConvert.cpp
diff -u llvm/lib/Transforms/ExprTypeConvert.cpp:1.121 llvm/lib/Transforms/ExprTypeConvert.cpp:1.122
--- llvm/lib/Transforms/ExprTypeConvert.cpp:1.121 Sun Jan 14 20:27:26 2007
+++ llvm/lib/Transforms/ExprTypeConvert.cpp Sat Jan 20 18:29:25 2007
@@ -576,8 +576,8 @@
// Can convert store if the incoming value is convertible and if the
// result will preserve semantics...
const Type *Op0Ty = I->getOperand(0)->getType();
- if (!(Op0Ty->isInteger() ^ ElTy->isInteger()) &&
- !(Op0Ty->isFloatingPoint() ^ ElTy->isFloatingPoint()))
+ if (Op0Ty->isInteger() == ElTy->isInteger() &&
+ Op0Ty->isFloatingPoint() == ElTy->isFloatingPoint())
return ExpressionConvertibleToType(I->getOperand(0), ElTy, CTMap, TD);
}
return false;
More information about the llvm-commits
mailing list