[all-commits] [llvm/llvm-project] f0393d: [RISCV] Add tests for suboptimal handling of negat...

Craig Topper via All-commits all-commits at lists.llvm.org
Sun Jul 11 12:42:03 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f0393deb336737b9ab9112089ea29866dd20da03
      https://github.com/llvm/llvm-project/commit/f0393deb336737b9ab9112089ea29866dd20da03
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2021-07-11 (Sun, 11 Jul 2021)

  Changed paths:
    M llvm/test/CodeGen/RISCV/xaluo.ll

  Log Message:
  -----------
  [RISCV] Add tests for suboptimal handling of negative constants for i32 uaddo/usubo on RV64. NFC

We end up zero extending constants when we promote to i64. We
should sign extend instead to allow use of addiw or improve
constant materialization.




More information about the All-commits mailing list