Just return the new node which is the standard practice.
I also noticed what appeared to be an unnecessary attempt at creating an ANY_EXTEND where the type should already be correct. I replace it with assert to verify the type.
Paths
| Differential D90444
[RISCV] Don't use DCI.CombineTo to replace a single result ClosedPublic Authored by craig.topper on Oct 29 2020, 9:34 PM.
Details Summary Just return the new node which is the standard practice. I also noticed what appeared to be an unnecessary attempt at creating an ANY_EXTEND where the type should already be correct. I replace it with assert to verify the type.
Diff Detail Event TimelineThis revision is now accepted and ready to land.Oct 30 2020, 2:11 AM Closed by commit rG6915c76e103a: [RISCV] Don't use DCI.CombineTo to replace a single result. NFCI (authored by craig.topper). · Explain WhyOct 30 2020, 10:49 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 301812 llvm/lib/Target/RISCV/RISCVISelLowering.cpp
|