diff options
author | Hans Wennborg <hans@hanshq.net> | 2011-06-03 17:15:37 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2011-06-03 17:15:37 +0000 |
commit | 68df608fd1eeb7f7fb6f7de49ff8cd6382654f79 (patch) | |
tree | c3df93c08d225ba72f6ca0dc6f7a8c18867a8ac8 | |
parent | da174c1d3b1fa31d7c5c47a645c66d600b4b7bd8 (diff) | |
download | llvm-68df608fd1eeb7f7fb6f7de49ff8cd6382654f79.tar.gz llvm-68df608fd1eeb7f7fb6f7de49ff8cd6382654f79.tar.bz2 llvm-68df608fd1eeb7f7fb6f7de49ff8cd6382654f79.tar.xz |
Test commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132558 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Analysis/Loads.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/Loads.cpp b/lib/Analysis/Loads.cpp index ab34fd653a..c5c676b526 100644 --- a/lib/Analysis/Loads.cpp +++ b/lib/Analysis/Loads.cpp @@ -31,7 +31,7 @@ using namespace llvm; 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 @@ static bool AreEquivalentAddressValues(const Value *A, const Value *B) { if (const Instruction *BI = dyn_cast<Instruction>(B)) if (cast<Instruction>(A)->isIdenticalToWhenDefined(BI)) return true; - + // Otherwise they may not be equivalent. return false; } |