1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Temporary reverting r41817

(http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070910/053370.html). It's
causing SPASS to fail.

llvm-svn: 41938
This commit is contained in:
Bill Wendling 2007-09-14 01:13:55 +00:00
parent f3448236f8
commit 843ac5aebe

View File

@ -336,24 +336,14 @@ void LoopIndexSplit::findLoopConditionals() {
if (!CI)
return;
// FIXME
if (CI->getPredicate() == ICmpInst::ICMP_EQ
|| CI->getPredicate() == ICmpInst::ICMP_NE)
return;
// FIXME
if (CI->getPredicate() == ICmpInst::ICMP_SGT
|| CI->getPredicate() == ICmpInst::ICMP_UGT
|| CI->getPredicate() == ICmpInst::ICMP_SGE
|| CI->getPredicate() == ICmpInst::ICMP_UGE) {
BasicBlock *FirstSuccessor = BR->getSuccessor(0);
// splitLoop() is expecting LT/LE as exit condition predicate.
// Swap operands here if possible to meet this requirement.
if (!L->contains(FirstSuccessor))
CI->swapOperands();
else
return;
}
|| CI->getPredicate() == ICmpInst::ICMP_UGE
|| CI->getPredicate() == ICmpInst::ICMP_EQ
|| CI->getPredicate() == ICmpInst::ICMP_NE)
return;
ExitCondition = CI;