[PATCH] D111524: [GlobalISel] Add support for constant vector folding of binops in CSEMIRBuilder.
Thorsten via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 11 09:44:01 PDT 2021
tschuett added inline comments.
================
Comment at: llvm/lib/CodeGen/GlobalISel/Utils.cpp:602
+ SmallVector<Register, 16> FoldedElements;
+ for (unsigned Idx = 0; Idx < SrcVec1->getNumSources(); ++Idx) {
+ auto MaybeCst = ConstantFoldBinOp(Opcode, SrcVec1->getSourceReg(Idx),
----------------
https://llvm.org/docs/CodingStandards.html#don-t-evaluate-end-every-time-through-a-loop
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D111524/new/
https://reviews.llvm.org/D111524
More information about the llvm-commits
mailing list