[llvm] [AMDGPU] SIInstrInfo: Fix resultDependsOnExec for VOPC instructions (PR #134629)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 8 01:53:44 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))
----------------
arsenm wrote:

It's depends on exec in a boolean way, not as a data value way. i.e. single lane bit value vs. lane mask 

https://github.com/llvm/llvm-project/pull/134629


More information about the llvm-commits mailing list