[RISCV] Move FixableDef handling out of isSignExtendingOpW.
authorCraig Topper <craig.topper@sifive.com>
Mon, 14 Nov 2022 17:59:03 +0000 (09:59 -0800)
committerCraig Topper <craig.topper@sifive.com>
Mon, 14 Nov 2022 18:14:17 +0000 (10:14 -0800)
commit18278d807a3cd8f30c7e1d0e7791365b83b182d1
treeb2d1e59d7422bfc4b1d11d4fa46f5d02818ce12a
parent1c9a93ae3ad0d8d085efe3af38ca65e4a7b2f307
[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.
llvm/lib/Target/RISCV/RISCVSExtWRemoval.cpp