[all-commits] [llvm/llvm-project] 1a2bd4: [RISCV] Make shouldConvertConstantLoadToIntImm ret...

Craig Topper via All-commits all-commits at lists.llvm.org
Mon Jul 11 09:40:34 PDT 2022


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

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp

  Log Message:
  -----------
  [RISCV] Make shouldConvertConstantLoadToIntImm return true unless enableUnalignedScalarMem is true.

This restores the old behavior before D129402 when
enableUnalignedScalarMem is false. This fixes a regression spotted
by @asb.

To fix this correctly, we need to consider alignment of the load
we'd be replacing, but that's not possible in the current interface.




More information about the All-commits mailing list