HomePhabricator

[PowerPC] Improve vec_abs on P9

Description

[PowerPC] Improve vec_abs on P9

Improve the current vec_abs support on P9, generate ISD::ABS node for vector types,
combine ABS node to VABSD node for some special cases to make use of P9 VABSD* insns,
do custom lowering to vsub(vneg later)+vmax if it has no combination opportunity.

Differential Revision: https://reviews.llvm.org/D54783

Details

Committed
jedilynDec 17 2018, 7:16 PM
Differential Revision
D54783: [PowerPC] suboptimal vec_abs for some cases on P9
Parents
rL349436: [COFF] Set the CPU string for LTO like ELF does
Branches
Unknown
Tags
Unknown