Legalize and emit code for:
- xscvqpswz : VSX Scalar truncate & Convert Quad-Precision to Signed Word
- xscvqpuwz : VSX Scalar truncate & Convert Quad-Precision to Unsigned Word
Paths
| Differential D45635
[Power9]Legalize and emit code for truncate and convert Quad-Precision to Word ClosedPublic Authored by lei on Apr 13 2018, 2:19 PM.
Details Summary Legalize and emit code for:
Diff Detail Event Timeline
Comment Actions Rebased with Unify handling for conversion of FP_TO_INT feeding a store (https://reviews.llvm.org/D46102). This revision is now accepted and ready to land.May 7 2018, 7:26 PM Closed by commit rL331790: [Power9]Legalize and emit code for truncate and convert Quad-Precision to Word (authored by lei). · Explain WhyMay 8 2018, 11:37 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 142465 lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/PowerPC/PPCInstrVSX.td
test/CodeGen/PowerPC/f128-truncateNconv.ll
|
Can we just add a condition to the check below rather than repeating most of the condition? You can even just fold the two type checks into another Boolean variable similar to ValidTypeForStoreFltAsInt. Furthermore, you can sink the check for the input types into the condition and exit early to prevent having to go through all the subsequent checks.