[PATCH] D114643: [AMDGPU] Aggressively fold immediates in SIFoldOperands
Sebastian Neubauer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 17 05:19:35 PDT 2022
sebastian-ne added a comment.
Both patches look good to me!
================
Comment at: llvm/lib/Target/AMDGPU/SIFoldOperands.cpp:1246-1249
+ SmallVector<MachineOperand *, 4> UsesToProcess;
+ for (auto &Use : MRI->use_nodbg_operands(Dst.getReg()))
+ UsesToProcess.push_back(&Use);
+ for (auto U : UsesToProcess) {
----------------
Can this use `make_early_inc_range` instead of caching the small vector like in the if-case? (if so, this probably makes more sense as an NFC patch afterwards)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D114643/new/
https://reviews.llvm.org/D114643
More information about the llvm-commits
mailing list