[PowerPC] Partially enable the ISEL expansion pass.
authorTony Jiang <jtony@ca.ibm.com>
Mon, 11 Dec 2017 20:42:37 +0000 (20:42 +0000)
committerTony Jiang <jtony@ca.ibm.com>
Mon, 11 Dec 2017 20:42:37 +0000 (20:42 +0000)
commit3b49dc548fd25b4b8aa3d4a90bd05f5d596abeb1
tree6c71ac38742e62dc645b8831bf8c8585dd321efc
parentb608076e56d2e7b1c4a4d67c4451e6d5b7a3b01a
[PowerPC] Partially enable the ISEL expansion pass.

The pass to expand ISEL instructions into if-then-else sequences in patch D23630
is currently disabled. This patch partially enable it by always removing the
unnecessary ISELs (all registers used by the ISELs are the same one) and folding
the ISELs which have the same input registers into unconditional copies.

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

llvm-svn: 320414
llvm/lib/Target/PowerPC/PPCExpandISEL.cpp
llvm/test/CodeGen/PowerPC/expand-contiguous-isel.ll
llvm/test/CodeGen/PowerPC/expand-foldable-isel.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/expand-isel-10.mir [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/expand-isel-9.mir [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/expand-isel.ll