Skip to content

Commit 4af6856

Browse files
committed
[ValueTracking] Address review comments
1 parent b80b7de commit 4af6856

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/CodeGenPrepare.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2314,7 +2314,7 @@ static bool despeculateCountZeros(IntrinsicInst *CountZeros,
23142314

23152315
// Bail if the value is never zero.
23162316
Use &Op = CountZeros->getOperandUse(0);
2317-
if (isKnownNonZero(Op, /*Depth=*/0, SimplifyQuery(*DL)))
2317+
if (isKnownNonZero(Op, /*Depth=*/0, *DL))
23182318
return false;
23192319

23202320
// The intrinsic will be sunk behind a compare against zero and branch.

0 commit comments

Comments
 (0)