[all-commits] [llvm/llvm-project] 18278d: [RISCV] Move FixableDef handling out of isSignExte...

Craig Topper via All-commits all-commits at lists.llvm.org
Mon Nov 14 10:22:43 PST 2022


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

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

  Log Message:
  -----------
  [RISCV] Move FixableDef handling out of isSignExtendingOpW.

We have two layers of opcode checks. The first is in
isSignExtendingOpW. If that returns false, a second switch is used
for looking through nodes by adding them to the worklist.

Move the FixableDef handling to the second switch. This simplies
the interface of isSignExtendingOpW and makes that function more
accurate to its name.




More information about the All-commits mailing list