[PATCH] D151797: [AMDGPU] WQM: Allow insertion of exact mode transition as terminator
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 1 11:46:55 PDT 2023
foad added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/SIWholeQuadMode.cpp:1213-1217
+ if (FirstTerm != MBB.end()) {
+ SlotIndex FirstTermIdx = LIS->getInstructionIndex(*FirstTerm);
+ SlotIndex BeforeIdx = LIS->getInstructionIndex(*Before);
+ IsTerminator = BeforeIdx > FirstTermIdx;
+ }
----------------
Simpler to use comesBefore? It is supposed to be efficient.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151797/new/
https://reviews.llvm.org/D151797
More information about the llvm-commits
mailing list