[PowerPC] Improve f32 to i32 bitcast code gen
authorAlbion Fung <albion.fung@ibm.com>
Mon, 31 May 2021 20:58:05 +0000 (15:58 -0500)
committerAlbion Fung <albionapc@gmail.com>
Mon, 31 May 2021 21:00:58 +0000 (16:00 -0500)
commitdb26cd30b6dd65e88d786e97a1e453af5cd48966
treea9e414e17e45896a91cb1c89a1190db74736d966
parentf0e10cc91bc40fb5c0698846f0a324d4658f54c7
[PowerPC] Improve f32 to i32 bitcast code gen

The code gen for f32 to i32 bitcast is not currently the most efficient;
this patch removes some unneccessary instructions gerneated.

Differential revision: https://reviews.llvm.org/D100782
llvm/lib/Target/PowerPC/PPCInstrVSX.td
llvm/test/CodeGen/PowerPC/aix-p9-xxinsertw-xxextractuw.ll
llvm/test/CodeGen/PowerPC/aix-vec_insert_elt.ll
llvm/test/CodeGen/PowerPC/bitcasts-direct-move.ll
llvm/test/CodeGen/PowerPC/p9-xxinsertw-xxextractuw.ll
llvm/test/CodeGen/PowerPC/scalar_vector_test_4.ll
llvm/test/CodeGen/PowerPC/vec_insert_elt.ll