Correct a rebase mistake.
authorXin Tong <trent.xin.tong@gmail.com>
Sun, 19 Mar 2017 15:41:46 +0000 (15:41 +0000)
committerXin Tong <trent.xin.tong@gmail.com>
Sun, 19 Mar 2017 15:41:46 +0000 (15:41 +0000)
Left out AA in jumpthreading SimplifyPartiallyRedundantLoad

llvm-svn: 298219

llvm/lib/Transforms/Scalar/JumpThreading.cpp

index a747d75..4b8b434 100644 (file)
@@ -1026,7 +1026,7 @@ bool JumpThreadingPass::SimplifyPartiallyRedundantLoad(LoadInst *LI) {
     Value *Ptr = LoadedPtr->DoPHITranslation(LoadBB, PredBB);
     PredAvailable = FindAvailablePtrLoadStore(
         Ptr, LI->getType(), LI->isAtomic(), PredBB, BBIt, DefMaxInstsToScan,
-        nullptr, &IsLoadCSE, &NumScanedInst);
+        AA, &IsLoadCSE, &NumScanedInst);
 
     // If PredBB has a single predecessor, continue scanning through the
     // single precessor.
@@ -1038,7 +1038,7 @@ bool JumpThreadingPass::SimplifyPartiallyRedundantLoad(LoadInst *LI) {
         BBIt = SinglePredBB->end();
         PredAvailable = FindAvailablePtrLoadStore(
             Ptr, LI->getType(), LI->isAtomic(), SinglePredBB, BBIt,
-            (DefMaxInstsToScan - NumScanedInst), nullptr, &IsLoadCSE,
+            (DefMaxInstsToScan - NumScanedInst), AA, &IsLoadCSE,
             &NumScanedInst);
       }
     }