[llvm-commits] [llvm] r132558 - /llvm/trunk/lib/Analysis/Loads.cpp
Hans Wennborg
hans at hanshq.net
Fri Jun 3 10:15:37 PDT 2011
Author: hans
Date: Fri Jun 3 12:15:37 2011
New Revision: 132558
URL: http://llvm.org/viewvc/llvm-project?rev=132558&view=rev
Log:
Test commit.
Modified:
llvm/trunk/lib/Analysis/Loads.cpp
Modified: llvm/trunk/lib/Analysis/Loads.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/Loads.cpp?rev=132558&r1=132557&r2=132558&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/Loads.cpp (original)
+++ llvm/trunk/lib/Analysis/Loads.cpp Fri Jun 3 12:15:37 2011
@@ -31,7 +31,7 @@
static bool AreEquivalentAddressValues(const Value *A, const Value *B) {
// Test if the values are trivially equivalent.
if (A == B) return true;
-
+
// Test if the values come from identical arithmetic instructions.
// Use isIdenticalToWhenDefined instead of isIdenticalTo because
// this function is only used when one address use dominates the
@@ -42,7 +42,7 @@
if (const Instruction *BI = dyn_cast<Instruction>(B))
if (cast<Instruction>(A)->isIdenticalToWhenDefined(BI))
return true;
-
+
// Otherwise they may not be equivalent.
return false;
}
More information about the llvm-commits
mailing list