[llvm] [Uniformity] Implement per-output machine uniformity analysis (PR #179275)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 10 03:16:30 PDT 2026


================
@@ -46,6 +47,25 @@ bool llvm::GenericUniformityAnalysisImpl<MachineSSAContext>::markDefsDivergent(
   return InsertedDivergent;
 }
 
+template <>
+bool llvm::GenericUniformityAnalysisImpl<MachineSSAContext>::isAlwaysUniform(
----------------
arsenm wrote:

It should be a Register or MachineInstr+index. IMO we would be better off if all of GIsel was in terms of a MachineValue (Inst+index) similar to SDValue 

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


More information about the llvm-commits mailing list