diff options
author | Philip Reames <listmail@philipreames.com> | 2015-02-15 19:07:31 +0000 |
---|---|---|
committer | Philip Reames <listmail@philipreames.com> | 2015-02-15 19:07:31 +0000 |
commit | 090a8242c38e462f3f6d2e24d905ff72c1cb23d6 (patch) | |
tree | fc17c1b6aafd58c4a1594ce22fde5394e2cb6f31 | |
parent | d4ed5df3a63de6c2abb5604ac17e3fad9a53b32c (diff) | |
download | bcm5719-llvm-090a8242c38e462f3f6d2e24d905ff72c1cb23d6.tar.gz bcm5719-llvm-090a8242c38e462f3f6d2e24d905ff72c1cb23d6.zip |
Revert 229175
This change is a logical suspect in 22587 and 22590. Given it's of minimal importanance and I can't get clang to build on my home machine, I'm reverting so that I can deal with this next week.
llvm-svn: 229322
-rw-r--r-- | llvm/lib/Analysis/MemoryDependenceAnalysis.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp b/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp index f0e70248739..6d38863db69 100644 --- a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp +++ b/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp @@ -422,9 +422,7 @@ getPointerDependencyFrom(const AliasAnalysis::Location &MemLoc, bool isLoad, } // Walk backwards through the basic block, looking for dependencies. - // We can stop before processing PHIs or dbg intrinsics. - const BasicBlock::iterator Begin(BB->getFirstNonPHIOrDbg()); - while (ScanIt != Begin) { + while (ScanIt != BB->begin()) { Instruction *Inst = --ScanIt; if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(Inst)) |