Skip to content

Commit 43ae7cd

Browse files
committed
Any Uses
1 parent fc7692a commit 43ae7cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ static Instruction *foldCttzCtlz(IntrinsicInst &II, InstCombinerImpl &IC) {
590590

591591
// cttz(Pow2) -> Log2(Pow2)
592592
// ctlz(Pow2) -> BitWidth - 1 - Log2(Pow2)
593-
if (IsTZ || II.hasOneUse()) {
593+
if (IsTZ) {
594594
if (auto *R = IC.tryGetLog2(Op0, match(Op1, m_One()))) {
595595
if (IsTZ)
596596
return IC.replaceInstUsesWith(II, R);

0 commit comments

Comments
 (0)