[PATCH] D63494: [AMDGPU] Fix for branch offset hardware workaround

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 20 15:07:06 PDT 2019


rampitec added a comment.

LGTM, except one indent.



================
Comment at: lib/Target/AMDGPU/SIInstrInfo.td:2316
+  let FilterClass = "Base_SOPP";
+  let RowFields = ["AsmString"];
+  let ColFields = ["Size"];
----------------
rtaylor wrote:
> rampitec wrote:
> > I must be missing something, but how does it work? You are passing the same asm string into the both versions. What do you map to what then?
> The asm string is the same for both, the s_nop is added in at encoding. I'm using the Size field, 4 maps to 8.
> 
> This is quite similar to how VOP is doing in during getVOPe32 and get VOPe64, the difference is that they also use a VOP3 flag but it's not needed here. Here, if you notice I am just adding the s_nop in class SOPP64e.
Got it, thanks!


================
Comment at: test/MC/AMDGPU/offsetbug_once.s:9
+	s_nop 0
+        s_nop 0
+	s_nop 0
----------------
Another indent.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D63494/new/

https://reviews.llvm.org/D63494





More information about the llvm-commits mailing list