[PATCH] D127474: [SelectionDAG] fold Op0 - (X * MulC) --> Op0 + (X << log2(-MulC))
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 13 08:58:30 PDT 2022
spatel added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:2557
+ return foldMul(ISD::ADD, Op1.getOperand(0), Op0, ShAmt);
+ }
}
----------------
Leave off the inner-most braces to be consistent with the existing code.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127474/new/
https://reviews.llvm.org/D127474
More information about the llvm-commits
mailing list