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 | 060b994a293dc082dd78437c6988f32ddccf6c3d (patch) | |
| tree | 7fc545238f93a4ef614bf99404f242bc3c6ef2e9 /llvm/lib | |
| parent | 597a730cb8efe039dd2dd76999e038b3b80a98ef (diff) | |
| download | bcm5719-llvm-060b994a293dc082dd78437c6988f32ddccf6c3d.tar.gz bcm5719-llvm-060b994a293dc082dd78437c6988f32ddccf6c3d.zip | |
Test commit.
llvm-svn: 132558
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Analysis/Loads.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/Loads.cpp b/llvm/lib/Analysis/Loads.cpp index ab34fd653a7..c5c676b5265 100644 --- a/llvm/lib/Analysis/Loads.cpp +++ b/llvm/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; } |

