[all-commits] [llvm/llvm-project] f58e45: [RISCV] Set ShouldSignExtI32Param in TargetLibrary...

Craig Topper via All-commits all-commits at lists.llvm.org
Mon Dec 12 16:41:45 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f58e45717d4cd6af288afb16ef092601a7352419
      https://github.com/llvm/llvm-project/commit/f58e45717d4cd6af288afb16ef092601a7352419
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-12-12 (Mon, 12 Dec 2022)

  Changed paths:
    M llvm/lib/Analysis/TargetLibraryInfo.cpp
    A llvm/test/Transforms/InstCombine/RISCV/libcall-arg-exts.ll

  Log Message:
  -----------
  [RISCV] Set ShouldSignExtI32Param in TargetLibraryInfo for riscv64.

riscv64 sign extends signed and unsigned i32 arguments like Mips.

Based on discussion here
https://discourse.llvm.org/t/can-we-preserve-signext-return-attribute-when-converting-memcmp-to-bcmp/67126

I'll work on returns next.

Differential Revision: https://reviews.llvm.org/D139893




More information about the All-commits mailing list