[llvm] AMDGPU/UniformityAnalysis: MIR Uniformity analysis for INLINEASM (PR #201874)
Pankaj Dwivedi via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 8 04:01:05 PDT 2026
================
@@ -11014,6 +11014,19 @@ ValueUniformity SIInstrInfo::getValueUniformity(const MachineInstr &MI) const {
opcode == AMDGPU::SI_RESTORE_S32_FROM_VGPR)
return ValueUniformity::AlwaysUniform;
+ // If any of defs is divergent, report as NeverUniform. isUniformReg will
+ // calculate in more detail for each def from its reg class, if available.
+ if (MI.isInlineAsm()) {
----------------
PankajDwivedi-25 wrote:
As mentioned in the other PR: https://github.com/llvm/llvm-project/pull/201956 this looks fine to me for solving the existing bug.
https://github.com/llvm/llvm-project/pull/201874
More information about the llvm-commits
mailing list