summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ConstantFolding.cpp
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2008-07-25 17:35:37 +0000
committerNate Begeman <natebegeman@mac.com>2008-07-25 17:35:37 +0000
commitc96e2e4968e6c647dacee737d704a71d2583d86c (patch)
tree77fa17c2685c077835bef93edab3d23a72e82600 /llvm/lib/Analysis/ConstantFolding.cpp
parent6559ada908b6f8c62ba0dd5dcd035ff26cccc019 (diff)
downloadbcm5719-llvm-c96e2e4968e6c647dacee737d704a71d2583d86c.tar.gz
bcm5719-llvm-c96e2e4968e6c647dacee737d704a71d2583d86c.zip
Fix minor issues with VICmp/VFCmp constant expressions
llvm-svn: 54030
Diffstat (limited to 'llvm/lib/Analysis/ConstantFolding.cpp')
-rw-r--r--llvm/lib/Analysis/ConstantFolding.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ConstantFolding.cpp b/llvm/lib/Analysis/ConstantFolding.cpp
index 43597c85f16..1a0e4b410c3 100644
--- a/llvm/lib/Analysis/ConstantFolding.cpp
+++ b/llvm/lib/Analysis/ConstantFolding.cpp
@@ -358,6 +358,8 @@ Constant *llvm::ConstantFoldInstOperands(unsigned Opcode, const Type *DestTy,
return 0;
case Instruction::ICmp:
case Instruction::FCmp:
+ case Instruction::VICmp:
+ case Instruction::VFCmp:
assert(0 &&"This function is invalid for compares: no predicate specified");
case Instruction::PtrToInt:
// If the input is a inttoptr, eliminate the pair. This requires knowing
@@ -473,7 +475,7 @@ Constant *llvm::ConstantFoldCompareInstOperands(unsigned Predicate,
}
}
}
- return ConstantExpr::getCompare(Predicate, Ops[0], Ops[1]);
+ return ConstantExpr::getCompare(Predicate, Ops[0], Ops[1]);
}
OpenPOWER on IntegriCloud