mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
0a8fb0b4d7
I stumbled onto a case where our (sext_inreg (assertzexti32 (fptoui X)), i32) isel pattern can cause an fcvt.wu and fcvt.lu to be emitted if the assertzexti32 has an additional user. If we add a one use check it would just cause a fcvt.lu followed by a sext.w when only need a fcvt.wu to satisfy both users. To mitigate this I've added custom isel and new ISD opcodes for fcvt.wu. This allows us to keep know it started life as a conversion to i32 without needing to match multiple nodes. ComputeNumSignBits has been taught that this new nodes produces 33 sign bits. To prevent regressions when we need to zero extend the result of an (i32 (fptoui X)), I've added a DAG combine to convert it to an (i64 (fptoui X)) before type legalization. In most cases this would happen in InstCombine, but a zero_extend can be created for function returns or arguments. To keep everything consistent I've added new nodes for fptosi as well. Reviewed By: luismarques Differential Revision: https://reviews.llvm.org/D106346 |
||
---|---|---|
.. | ||
AsmParser | ||
Disassembler | ||
MCTargetDesc | ||
TargetInfo | ||
CMakeLists.txt | ||
RISCV.h | ||
RISCV.td | ||
RISCVAsmPrinter.cpp | ||
RISCVCallingConv.td | ||
RISCVCallLowering.cpp | ||
RISCVCallLowering.h | ||
RISCVExpandAtomicPseudoInsts.cpp | ||
RISCVExpandPseudoInsts.cpp | ||
RISCVFrameLowering.cpp | ||
RISCVFrameLowering.h | ||
RISCVInsertVSETVLI.cpp | ||
RISCVInstrFormats.td | ||
RISCVInstrFormatsC.td | ||
RISCVInstrFormatsV.td | ||
RISCVInstrInfo.cpp | ||
RISCVInstrInfo.h | ||
RISCVInstrInfo.td | ||
RISCVInstrInfoA.td | ||
RISCVInstrInfoB.td | ||
RISCVInstrInfoC.td | ||
RISCVInstrInfoD.td | ||
RISCVInstrInfoF.td | ||
RISCVInstrInfoM.td | ||
RISCVInstrInfoV.td | ||
RISCVInstrInfoVPseudos.td | ||
RISCVInstrInfoVSDPatterns.td | ||
RISCVInstrInfoVVLPatterns.td | ||
RISCVInstrInfoZfh.td | ||
RISCVInstructionSelector.cpp | ||
RISCVISelDAGToDAG.cpp | ||
RISCVISelDAGToDAG.h | ||
RISCVISelLowering.cpp | ||
RISCVISelLowering.h | ||
RISCVLegalizerInfo.cpp | ||
RISCVLegalizerInfo.h | ||
RISCVMachineFunctionInfo.h | ||
RISCVMCInstLower.cpp | ||
RISCVMergeBaseOffset.cpp | ||
RISCVRegisterBankInfo.cpp | ||
RISCVRegisterBankInfo.h | ||
RISCVRegisterBanks.td | ||
RISCVRegisterInfo.cpp | ||
RISCVRegisterInfo.h | ||
RISCVRegisterInfo.td | ||
RISCVSchedRocket.td | ||
RISCVSchedSiFive7.td | ||
RISCVSchedule.td | ||
RISCVScheduleB.td | ||
RISCVSubtarget.cpp | ||
RISCVSubtarget.h | ||
RISCVSystemOperands.td | ||
RISCVTargetMachine.cpp | ||
RISCVTargetMachine.h | ||
RISCVTargetObjectFile.cpp | ||
RISCVTargetObjectFile.h | ||
RISCVTargetTransformInfo.cpp | ||
RISCVTargetTransformInfo.h |