[PATCH] D103323: [DAGCombiner] Add support for mulhi const folding in DAGCombiner
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 28 09:03:17 PDT 2021
foad added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:5090
+ unsigned FullWidth = C1.getBitWidth() * 2;
+ APInt C1Ext = C1.sextOrTrunc(FullWidth);
+ APInt C2Ext = C2.sextOrTrunc(FullWidth);
----------------
You don't need "OrTrunc" here and below.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D103323/new/
https://reviews.llvm.org/D103323
More information about the llvm-commits
mailing list