[NFC] [PowerPC] Refactor fp/int conversion lowering
authorQiu Chaofan <qiucofan@cn.ibm.com>
Tue, 4 Aug 2020 07:48:16 +0000 (15:48 +0800)
committerQiu Chaofan <qiucofan@cn.ibm.com>
Tue, 4 Aug 2020 07:48:16 +0000 (15:48 +0800)
commit6a78a8dd378b77be002f0243d80322bbdd6513c5
tree6ab37847c5afd81c6767b3e5b6661f613ae2924f
parent6f97103b561cb14e26aafa3b90ecec97f1d08944
[NFC] [PowerPC] Refactor fp/int conversion lowering

For FP_TO_INT and INT_TO_FP lowering, we have direct-move and
non-direct-move methods. But they share some conversion logic, so we can
reduce redundant code by introducing new methods.

Reviewed By: steven.zhang

Differential Revision: https://reviews.llvm.org/D81818
llvm/lib/Target/PowerPC/PPCISelLowering.cpp