[llvm] [X86] Avoid shl->mul lowbit-isolate fold on Zen when unprofitable (PR #217776)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 21 02:11:57 PDT 2026


================
@@ -50792,6 +50794,25 @@ static SDValue combineMul(SDNode *N, SelectionDAG &DAG,
   if (SDValue V = combineMulToPMADD52(N, DL, DAG, Subtarget))
     return V;
 
+  // #214517 folds shl X, cttz(Y) into mul(and(neg(Y), Y), X), which is
----------------
RKSimon wrote:

Just say "InstCombine folds shl....."

https://github.com/llvm/llvm-project/pull/217776


More information about the llvm-commits mailing list