[all-commits] [llvm/llvm-project] 0b93e9: Revert "[RISCV] LUI used for address computation s...

Ben Shi via All-commits all-commits at lists.llvm.org
Thu Feb 17 01:27:59 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0b93e90971c0a43199e2da70c9422ebb073080ae
      https://github.com/llvm/llvm-project/commit/0b93e90971c0a43199e2da70c9422ebb073080ae
  Author: Ben Shi <ben.shi at streamcomputing.com>
  Date:   2022-02-17 (Thu, 17 Feb 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
    M llvm/test/CodeGen/RISCV/unroll-loop-cse.ll

  Log Message:
  -----------
  Revert "[RISCV] LUI used for address computation should not isAsCheapAsAMove"

This reverts commit 23a50736004e94704a2393aa36a905d737f2b20f.

Although this patch achieved better codegen in most cases, it is really
important to accurately describe the cost of instructions. So I revert it.




More information about the All-commits mailing list