[PATCH] D24420: AMDGPU: Use brev for materializing SGPR constants

Mandeep Singh Grang via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 9 12:58:22 PDT 2016


mgrang added a subscriber: mgrang.

================
Comment at: lib/Target/AMDGPU/SIShrinkInstructions.cpp:333
@@ +332,3 @@
+        if (Src.isImm()) {
+          int32_t ReverseImm;
+          if (isKImmOperand(TII, Src))
----------------
else-if can be changed to an else and ReverseImm can be moved inside the else part.


https://reviews.llvm.org/D24420





More information about the llvm-commits mailing list