Skip to content

Commit 6b3d008

Browse files
committed
remove unnecessary GCD calculation
1 parent d4fe0a8 commit 6b3d008

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

llvm/lib/Analysis/DependenceAnalysis.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2591,7 +2591,6 @@ bool DependenceInfo::gcdMIVtest(const SCEV *Src, const SCEV *Dst,
25912591
LLVM_DEBUG(dbgs() << " ConstDelta = " << ConstDelta << "\n");
25922592
if (ConstDelta == 0)
25932593
return false;
2594-
RunningGCD = APIntOps::GreatestCommonDivisor(RunningGCD, ExtraGCD);
25952594
LLVM_DEBUG(dbgs() << " RunningGCD = " << RunningGCD << "\n");
25962595
APInt Remainder = ConstDelta.srem(RunningGCD);
25972596
if (Remainder != 0) {

0 commit comments

Comments
 (0)