[PATCH] D15425: AMDGPU/SI: Select constant loads with non-uniform addresses to MUBUF instructions

Tom Stellard via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 11 19:45:58 PST 2015


tstellarAMD marked 4 inline comments as done.

================
Comment at: lib/Target/AMDGPU/AMDGPUTargetMachine.cpp:285-288
@@ -283,4 +284,6 @@
   addPass(createSITypeRewriter());
   addPass(createSIAnnotateControlFlowPass());
+  addPass(createAMDGPUAnnotateUniformValues());
+
   return false;
 }
----------------
No particular reason.  I'll probably move it when I finish uniform branching.

================
Comment at: lib/Target/AMDGPU/SIInstructions.td:2111
@@ +2110,3 @@
+// selector to prefer those.
+let AddedComplexity = 100 in {
+
----------------
Some of the MUBUF patterns have complexity over 25, so I changed this to 100.


http://reviews.llvm.org/D15425





More information about the llvm-commits mailing list