[PATCH] D111737: [AMDGPU] Remove unneeded emit literal check

Joe Nash via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 13 10:04:13 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rGb44eac1b851a: [AMDGPU] Remove unneeded emit literal check (authored by Joe_Nash).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D111737

Files:
  llvm/lib/Target/AMDGPU/MCTargetDesc/SIMCCodeEmitter.cpp


Index: llvm/lib/Target/AMDGPU/MCTargetDesc/SIMCCodeEmitter.cpp
===================================================================
--- llvm/lib/Target/AMDGPU/MCTargetDesc/SIMCCodeEmitter.cpp
+++ llvm/lib/Target/AMDGPU/MCTargetDesc/SIMCCodeEmitter.cpp
@@ -547,8 +547,7 @@
   const MCInstrDesc &Desc = MCII.get(MI.getOpcode());
   if (AMDGPU::isSISrcOperand(Desc, OpNo)) {
     uint32_t Enc = getLitEncoding(MO, Desc.OpInfo[OpNo], STI);
-    if (Enc != ~0U &&
-        (Enc != 255 || Desc.getSize() == 4 || Desc.getSize() == 8))
+    if (Enc != ~0U)
       return Enc;
 
   } else if (MO.isImm())


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111737.379446.patch
Type: text/x-patch
Size: 595 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211013/bf512a2f/attachment.bin>


More information about the llvm-commits mailing list