[llvm-commits] [llvm] r93540 - /llvm/trunk/lib/CodeGen/TailDuplication.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Fri Jan 15 11:59:57 PST 2010
Author: stoklund
Date: Fri Jan 15 13:59:57 2010
New Revision: 93540
URL: http://llvm.org/viewvc/llvm-project?rev=93540&view=rev
Log:
Simplify logic. Any functional change is unintended.
Modified:
llvm/trunk/lib/CodeGen/TailDuplication.cpp
Modified: llvm/trunk/lib/CodeGen/TailDuplication.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/TailDuplication.cpp?rev=93540&r1=93539&r2=93540&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/TailDuplication.cpp (original)
+++ llvm/trunk/lib/CodeGen/TailDuplication.cpp Fri Jan 15 13:59:57 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-commits
mailing list