[llvm-branch-commits] [llvm-branch] r93542 - in /llvm/branches/Apple/Zoidberg/lib/CodeGen: MachineBasicBlock.cpp TailDuplication.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Fri Jan 15 12:02:00 PST 2010
Author: stoklund
Date: Fri Jan 15 14:02:00 2010
New Revision: 93542
URL: http://llvm.org/viewvc/llvm-project?rev=93542&view=rev
Log:
Merge 93540 93541
Modified:
llvm/branches/Apple/Zoidberg/lib/CodeGen/MachineBasicBlock.cpp
llvm/branches/Apple/Zoidberg/lib/CodeGen/TailDuplication.cpp
Modified: llvm/branches/Apple/Zoidberg/lib/CodeGen/MachineBasicBlock.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Zoidberg/lib/CodeGen/MachineBasicBlock.cpp?rev=93542&r1=93541&r2=93542&view=diff
==============================================================================
--- llvm/branches/Apple/Zoidberg/lib/CodeGen/MachineBasicBlock.cpp (original)
+++ llvm/branches/Apple/Zoidberg/lib/CodeGen/MachineBasicBlock.cpp Fri Jan 15 14:02:00 2010
@@ -378,7 +378,7 @@
MachineBasicBlock *TBB = 0, *FBB = 0;
SmallVector<MachineOperand, 4> Cond;
const TargetInstrInfo *TII = getParent()->getTarget().getInstrInfo();
- if (TII->AnalyzeBranch(*this, TBB, FBB, Cond, true)) {
+ if (TII->AnalyzeBranch(*this, TBB, FBB, Cond)) {
// If we couldn't analyze the branch, examine the last instruction.
// If the block doesn't end in a known control barrier, assume fallthrough
// is possible. The isPredicable check is needed because this code can be
Modified: llvm/branches/Apple/Zoidberg/lib/CodeGen/TailDuplication.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Zoidberg/lib/CodeGen/TailDuplication.cpp?rev=93542&r1=93541&r2=93542&view=diff
==============================================================================
--- llvm/branches/Apple/Zoidberg/lib/CodeGen/TailDuplication.cpp (original)
+++ llvm/branches/Apple/Zoidberg/lib/CodeGen/TailDuplication.cpp Fri Jan 15 14:02:00 2010
@@ -108,12 +108,8 @@
MMI = getAnalysisIfAvailable<MachineModuleInfo>();
bool MadeChange = false;
- bool MadeChangeThisIteration = true;
- while (MadeChangeThisIteration) {
- MadeChangeThisIteration = false;
- MadeChangeThisIteration |= TailDuplicateBlocks(MF);
- MadeChange |= MadeChangeThisIteration;
- }
+ while (TailDuplicateBlocks(MF))
+ MadeChange = true;
return MadeChange;
}
More information about the llvm-branch-commits
mailing list