[llvm-commits] [llvm] r122690 - /llvm/trunk/include/llvm/Analysis/DominatorInternals.h
Cameron Zwarich
zwarich at apple.com
Sun Jan 2 02:50:15 PST 2011
Author: zwarich
Date: Sun Jan 2 04:50:14 2011
New Revision: 122690
URL: http://llvm.org/viewvc/llvm-project?rev=122690&view=rev
Log:
Move a load into the only branch where it is used and eliminate a temporary.
Modified:
llvm/trunk/include/llvm/Analysis/DominatorInternals.h
Modified: llvm/trunk/include/llvm/Analysis/DominatorInternals.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/DominatorInternals.h?rev=122690&r1=122689&r2=122690&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/DominatorInternals.h (original)
+++ llvm/trunk/include/llvm/Analysis/DominatorInternals.h Sun Jan 2 04:50:14 2011
@@ -238,13 +238,11 @@
}
}
- typename GraphT::NodeType* WParent = DT.Vertex[WInfo.Parent];
-
// If V is a non-root vertex and sdom(V) = parent(V), then idom(V) is
// necessarily parent(V). In this case, set idom(V) here and avoid placing
// V into a bucket.
if (WInfo.Semi == WInfo.Parent) {
- DT.IDoms[W] = WParent;
+ DT.IDoms[W] = DT.Vertex[WInfo.Parent];
} else {
Buckets[i] = Buckets[WInfo.Semi];
Buckets[WInfo.Semi] = i;
More information about the llvm-commits
mailing list