[all-commits] [llvm/llvm-project] 889593: [NVPTX] Avoid implicit truncation in getConstant()

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Nov 22 06:04:49 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 88959324710a5a24687162642d4faf7e056743c5
      https://github.com/llvm/llvm-project/commit/88959324710a5a24687162642d4faf7e056743c5
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-11-22 (Fri, 22 Nov 2024)

  Changed paths:
    M llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
    M llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp

  Log Message:
  -----------
  [NVPTX] Avoid implicit truncation in getConstant()

Either use getSignedConstant() or change variable type to unsigned
to avoid unnecessary sign extension in the first place.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list