[llvm] [AMDGPU] Improve isBasicBlockPrologue to only add necessary instructions (PR #113303)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 25 10:47:18 PDT 2024
================
@@ -8917,8 +8933,7 @@ bool SIInstrInfo::isBasicBlockPrologue(const MachineInstr &MI,
uint16_t Opcode = MI.getOpcode();
return IsNullOrVectorRegister &&
- (isSGPRSpill(Opcode) || isWWMRegSpillOpcode(Opcode) ||
- Opcode == AMDGPU::IMPLICIT_DEF ||
+ (isPrologueOperandReload(MI) || Opcode == AMDGPU::IMPLICIT_DEF ||
----------------
arsenm wrote:
Defer this check as it's the most complex
https://github.com/llvm/llvm-project/pull/113303
More information about the llvm-commits
mailing list