[PATCH] D108129: [DAGCombiner] Teach combineShiftToMULH to handle constant and const splat vector.
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 22 02:32:04 PDT 2021
RKSimon added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:8536
+ unsigned ActiveBits =
+ isConstOrConstSplat(ConstantOp)->getAPIntValue().getActiveBits();
+ if (ActiveBits > NarrowVTBits)
----------------
Why not reuse LeftConstant/RightConstant?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108129/new/
https://reviews.llvm.org/D108129
More information about the llvm-commits
mailing list