[llvm] [AMDGPU] SIInstrInfo: Fix resultDependsOnExec for VOPC instructions (PR #134629)
Carl Ritson via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 8 01:51:42 PDT 2025
================
@@ -151,6 +151,9 @@ static bool resultDependsOnExec(const MachineInstr &MI) {
// Ignore comparisons which are only used masked with exec.
// This allows some hoisting/sinking of VALU comparisons.
if (MI.isCompare()) {
+ if (SIInstrInfo::isVOPC(MI))
----------------
perlfu wrote:
Conservatively returning `true` for this test is always safe.
The original point was to allow hoisting of more instructions, returning true basically means "don't hoist".
https://github.com/llvm/llvm-project/pull/134629
More information about the llvm-commits
mailing list