[llvm-commits] [llvm] r136219 - /llvm/trunk/include/llvm/Analysis/BlockFrequencyImpl.h
Jakub Staszak
jstaszak at apple.com
Wed Jul 27 08:42:09 PDT 2011
Author: kuba
Date: Wed Jul 27 10:42:09 2011
New Revision: 136219
URL: http://llvm.org/viewvc/llvm-project?rev=136219&view=rev
Log:
Edge to itself is backedge as well.
Modified:
llvm/trunk/include/llvm/Analysis/BlockFrequencyImpl.h
Modified: llvm/trunk/include/llvm/Analysis/BlockFrequencyImpl.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/BlockFrequencyImpl.h?rev=136219&r1=136218&r2=136219&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/BlockFrequencyImpl.h (original)
+++ llvm/trunk/include/llvm/Analysis/BlockFrequencyImpl.h Wed Jul 27 10:42:09 2011
@@ -160,7 +160,7 @@
unsigned a = RPO[Src];
unsigned b = RPO[Dst];
- return a > b;
+ return a >= b;
}
/// getSingleBlockPred - return single BB block predecessor or NULL if
More information about the llvm-commits
mailing list