projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1d6521
)
"fix" problems processing floating point expressions
author
Chris Lattner
<sabre@nondot.org>
Wed, 5 Dec 2001 19:38:29 +0000
(19:38 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 5 Dec 2001 19:38:29 +0000
(19:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1421
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/Expressions.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/Expressions.cpp
b/lib/Analysis/Expressions.cpp
index d0ab480772e89158e073f25432c87390ac2cb4ea..b44b8ff162e0b652eaf68f65146bf5fff597cc9f 100644
(file)
--- a/
lib/Analysis/Expressions.cpp
+++ b/
lib/Analysis/Expressions.cpp
@@
-221,6
+221,9
@@
static inline ExprType negate(const ExprType &E, Value *V) {
//
ExprType analysis::ClassifyExpression(Value *Expr) {
assert(Expr != 0 && "Can't classify a null expression!");
+ if (Expr->getType() == Type::FloatTy || Expr->getType() == Type::DoubleTy)
+ return Expr; // FIXME: Can't handle FP expressions
+
switch (Expr->getValueType()) {
case Value::InstructionVal: break; // Instruction... hmmm... investigate.
case Value::TypeVal: case Value::BasicBlockVal: