[PATCH] D82194: [AMDGPU] Enable compare operations to be selected by divergence
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 23 05:49:33 PDT 2020
arsenm added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/SIInstrInfo.cpp:6169-6170
// Check if SCC is used first.
- if (MI.findRegisterUseOperandIdx(AMDGPU::SCC, false, &RI) != -1) {
+ int SCCIdx = MI.findRegisterUseOperandIdx(AMDGPU::SCC, false, &RI);
+ if (SCCIdx != -1) {
if (MI.isCopy()) {
----------------
MI.readsRegister(SCC)? I also think this would break if we ever bothered to use the feature of directly using scc in instruction operands
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82194/new/
https://reviews.llvm.org/D82194
More information about the llvm-commits
mailing list