[PATCH] D76440: [AMDGPU] Add Relocation Constant Support

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 20 11:24:43 PDT 2020


arsenm added a comment.

It seems weird to me to expose relocation names so directly. Why isn't this just exposing whatever specific construct you need?



================
Comment at: llvm/test/CodeGen/AMDGPU/amdgpu-reloc-const.ll:18
+  %rcf = bitcast i32 %rc to float
+  %zero = bitcast i32 0 to float
+  call void @llvm.amdgcn.exp.f32(i32 immarg 12, i32 immarg 15, float %rcf, float %zero, float %zero, float %zero, i1 immarg true, i1 immarg false) 
----------------
You can just use 0.0


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D76440





More information about the llvm-commits mailing list