[all-commits] [llvm/llvm-project] a8b8e9: [RISCV] Improve contant materialization to end wit...

Craig Topper via All-commits all-commits at lists.llvm.org
Wed Sep 20 16:53:05 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a8b8e9476451e125e81bd24fbde6605246c59a0e
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-09-20 (Wed, 20 Sep 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVMatInt.cpp
    M llvm/test/CodeGen/RISCV/imm.ll

  Log Message:
  [RISCV] Improve contant materialization to end with 'not' if the cons… (#66950)

…tant has leading ones.

We can invert the value and treat it as if it had leading zeroes.

More information about the All-commits mailing list