[llvm-commits] CVS: llvm/lib/VMCore/ConstantFolding.cpp
LLVM
llvm at cs.uiuc.edu
Sat May 29 20:23:01 PDT 2004
Changes in directory llvm/lib/VMCore:
ConstantFolding.cpp updated: 1.57 -> 1.58
---
Log message:
Fix a bug that Chris asserts emphatically is a bug. The changed clause
would always return false because the Type of a type value is always
Type::TypeTY and can never be a floating point type.
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/VMCore/ConstantFolding.cpp
diff -u llvm/lib/VMCore/ConstantFolding.cpp:1.57 llvm/lib/VMCore/ConstantFolding.cpp:1.58
--- llvm/lib/VMCore/ConstantFolding.cpp:1.57 Sat Apr 10 20:29:30 2004
+++ llvm/lib/VMCore/ConstantFolding.cpp Sat May 29 20:19:48 2004
@@ -539,7 +539,7 @@
// Try to not produce a cast of a cast, which is almost always redundant.
if (!Op->getType()->isFloatingPoint() &&
!CE->getType()->isFloatingPoint() &&
- !DestTy->getType()->isFloatingPoint()) {
+ !DestTy->isFloatingPoint()) {
unsigned S1 = getSize(Op->getType()), S2 = getSize(CE->getType());
unsigned S3 = getSize(DestTy);
if (Op->getType() == DestTy && S3 >= S2)
More information about the llvm-commits
mailing list