[all-commits] [llvm/llvm-project] b1849a: [RISCV] Add test cases for missed opportunites to ...

Craig Topper via All-commits all-commits at lists.llvm.org
Mon Feb 19 10:27:55 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b1849a2c6bac6337945206a7c3c9f5d5812457cc
      https://github.com/llvm/llvm-project/commit/b1849a2c6bac6337945206a7c3c9f5d5812457cc
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2024-02-19 (Mon, 19 Feb 2024)

  Changed paths:
    M llvm/test/CodeGen/RISCV/sext-zext-trunc.ll

  Log Message:
  -----------
  [RISCV] Add test cases for missed opportunites to treat a zext nneg as sext. NFC

These tests have a dominating icmp that require an i16 value to be
sign extended to do the compare. Because of this, the i16 will be
exported from the first basic block sign extended to XLen. We can
use this fact to remove the zext nneg in the scond block.



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