[PATCH] D103323: [DAGCombiner] Add support for mulhi const folding in DAGCombiner
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 28 08:50:19 PDT 2021
RKSimon added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:5092
+ APInt C2Ext = C2.sextOrTrunc(FullWidth);
+ return (C1Ext * C2Ext).getHiBits(C1.getBitWidth()).trunc(C1.getBitWidth());
+ }
----------------
APInt::extractBits ?
================
Comment at: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:5098
+ APInt C2Ext = C2.zextOrTrunc(FullWidth);
+ return (C1Ext * C2Ext).getHiBits(C1.getBitWidth()).trunc(C1.getBitWidth());
+ }
----------------
APInt::extractBits ?
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