We were creating RISCVISD::SELECT_CC nodes with Glue output that was never being used, and the tablegen SDNode had the SDNPInGlue flag instead of the SDNPOutGlue flag.
Since we don't seem to need the Glue just get rid of it from both places.
Differential D91199
[RISCV] Remove traces of Glue from RISCVISD::SELECT_CC craig.topper on Nov 10 2020, 12:00 PM. Authored by
Details We were creating RISCVISD::SELECT_CC nodes with Glue output that was never being used, and the tablegen SDNode had the SDNPInGlue flag instead of the SDNPOutGlue flag. Since we don't seem to need the Glue just get rid of it from both places.
Diff Detail
Event TimelineComment Actions LGTM; from a quick look I can't see anything that would need that glue. Do you have an idea why it was added? Comment Actions No. As far as I could tell it had been there but not used since the first patch that added RISCVISD::SELECT_CC. Comment Actions I think I'd just copied it across from the equivalent nodes in the Sparc (SPselecticc, SPselectxcc, SPselectfcc) and MSP430 (MSP540selectcc) backends. If it's not required it looks like a similar cleanup could be made there. Comment Actions It looks like both Sparc and MSP430 do use a Glue input so the td file is correct for them. Sparc does not have a Glue output. MSP430 has an unused Glue output that could be cleaned up. |