1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

The fixme is irrelevant: if that happens, the LLVM bytecode is malformed.

This fixes testcase: SimplifyCFG/2003-08-17-BranchFold.ll

llvm-svn: 7919
This commit is contained in:
Chris Lattner 2003-08-17 19:34:55 +00:00
parent 24fe70b3de
commit 17f985bfa4

View File

@ -61,12 +61,7 @@ bool ConstantFoldTerminator(BasicBlock *BB) {
// unconditional branch.
BI->setUnconditionalDest(Destination);
return true;
}
#if 0
// FIXME: TODO: This doesn't work if the destination has PHI nodes with
// different incoming values on each branch!
//
else if (Dest2 == Dest1) { // Conditional branch to same location?
} else if (Dest2 == Dest1) { // Conditional branch to same location?
// This branch matches something like this:
// br bool %cond, label %Dest, label %Dest
// and changes it into: br label %Dest
@ -79,7 +74,6 @@ bool ConstantFoldTerminator(BasicBlock *BB) {
BI->setUnconditionalDest(Dest1);
return true;
}
#endif
}
return false;
}