mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-22 12:08:33 +00:00
Teach GVN to not assert on vector comparisons
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51230 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f44085a86a
commit
1d6e4091f6
@ -226,7 +226,7 @@ Expression::ExpressionOpcode ValueTable::getOpcode(BinaryOperator* BO) {
|
||||
}
|
||||
|
||||
Expression::ExpressionOpcode ValueTable::getOpcode(CmpInst* C) {
|
||||
if (isa<ICmpInst>(C)) {
|
||||
if (isa<ICmpInst>(C) || isa<VICmpInst>(C)) {
|
||||
switch (C->getPredicate()) {
|
||||
default: // THIS SHOULD NEVER HAPPEN
|
||||
assert(0 && "Comparison with unknown predicate?");
|
||||
@ -242,7 +242,7 @@ Expression::ExpressionOpcode ValueTable::getOpcode(CmpInst* C) {
|
||||
case ICmpInst::ICMP_SLE: return Expression::ICMPSLE;
|
||||
}
|
||||
}
|
||||
assert(isa<FCmpInst>(C) && "Unknown compare");
|
||||
assert((isa<FCmpInst>(C) || isa<VFCmpInst>(C)) && "Unknown compare");
|
||||
switch (C->getPredicate()) {
|
||||
default: // THIS SHOULD NEVER HAPPEN
|
||||
assert(0 && "Comparison with unknown predicate?");
|
||||
|
Loading…
Reference in New Issue
Block a user