Revert 229175
authorPhilip Reames <listmail@philipreames.com>
Sun, 15 Feb 2015 19:07:31 +0000 (19:07 +0000)
committerPhilip Reames <listmail@philipreames.com>
Sun, 15 Feb 2015 19:07:31 +0000 (19:07 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229322 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/MemoryDependenceAnalysis.cpp

index f0e702487390eb68097d66dc18157625410cee22..6d38863db69cea07c9de57d47eb7160cb85aa1bb 100644 (file)
@@ -422,9 +422,7 @@ getPointerDependencyFrom(const AliasAnalysis::Location &MemLoc, bool isLoad,
   }
 
   // Walk backwards through the basic block, looking for dependencies.
   }
 
   // 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))
     Instruction *Inst = --ScanIt;
 
     if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(Inst))