Recommit "[RISCV] Use setcc's original SDLoc when inverting it in performSUBCombine."
authorCraig Topper <craig.topper@sifive.com>
Tue, 16 Aug 2022 22:50:24 +0000 (15:50 -0700)
committerCraig Topper <craig.topper@sifive.com>
Tue, 16 Aug 2022 22:51:07 +0000 (15:51 -0700)
commit53ce22e42971e2ad1acc561496bdf043d3ab0cfa
treeb93328fb43a7572a0d6f02f0b4e80777e6cfaeeb
parent2dfa4b6475f85c9f795647513dbd5f206144c23a
Recommit "[RISCV] Use setcc's original SDLoc when inverting it in performSUBCombine."

This time using N1 instead of N0 since N1 points to the original
setcc. This now affects scheduling as I expected.

Original commit message:
We change seteq<->setne but it doesn't change the semantics
of the setcc. We should keep original debug location. This is
consistent with visitXor in the generic DAGCombiner.
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/test/CodeGen/RISCV/get-setcc-result-type.ll
llvm/test/CodeGen/RISCV/srem-seteq-illegal-types.ll