[all-commits] [llvm/llvm-project] ee6d62: [AMDGPU] Prevent folding of the negative i32 liter...

Stanislav Mekhanoshin via All-commits all-commits at lists.llvm.org
Mon Oct 30 08:07:59 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ee6d62db997bf61ef17a9f888c240f60656dc2db
      https://github.com/llvm/llvm-project/commit/ee6d62db997bf61ef17a9f888c240f60656dc2db
  Author: Stanislav Mekhanoshin <rampitec at users.noreply.github.com>
  Date:   2023-10-30 (Mon, 30 Oct 2023)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
    M llvm/test/CodeGen/AMDGPU/fold-short-64-bit-literals.mir
    A llvm/test/CodeGen/AMDGPU/folding-of-i32-as-i64.mir

  Log Message:
  -----------
  [AMDGPU] Prevent folding of the negative i32 literals as i64 (#70274)

We can use sign extended 64-bit literals, but only for signed operands.
At the moment we do not know if an operand is signed. Such operand will
be encoded as its low 32 bits and then either correctly sign extended or
incorrectly zero extended by HW.




More information about the All-commits mailing list