[PATCH] D104874: [AMDGPU] Add S_MOV_B64_IMM_PSEUDO for fp constants

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 25 03:57:11 PDT 2021


foad added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/SIInstrInfo.cpp:2681
+    uint64_t Imm = MI.getOperand(1).getImm();
+    return isUInt<32>(Imm) || isInlineConstant(APInt(64, Imm));
+  }
----------------
Does this ever return true? If I understand the isel changes, if these conditions were satisfied, you would have selected S_MOV_B64 instead of S_MOV_B64_IMM_PSEUDO.


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

https://reviews.llvm.org/D104874



More information about the llvm-commits mailing list