[PATCH] D123181: [RISCV] Refactoring the type promotion process of instructions fsl/fsr
Alex Bradbury via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 11 08:27:36 PDT 2022
asb added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:6591
+ // Walk through the operand list.
+ for (unsigned I = 1; I < N->getNumOperands(); I++)
+ // Promote the operand to i64 type
----------------
asb wrote:
> Nit: you could replace this with `for (SDValue Op : N->ops())`
Sorry, you'd actually need `for (SDValue Op : drop_begin(N->ops()))`. Not quite as compelling a replacement, but might be worth considering.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D123181/new/
https://reviews.llvm.org/D123181
More information about the llvm-commits
mailing list