[PATCH] D102698: [InstCombine] Relaxed constraints of uses for exp(X) * exp(Y) -> exp(X + Y) and exp2(X) * exp2(Y) -> exp2(X + Y)

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 24 05:56:15 PDT 2021


lebedev.ri added a comment.

I"m not sure i like `isOnlyUserOfAnyOperand()` direction,
even though i've encountered this problem before.

I would recommend to simply use `hasOneUser()` in place of `hasOneUse()`?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102698/new/

https://reviews.llvm.org/D102698



More information about the llvm-commits mailing list