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
}
// 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))