HomePhabricator

[PowerPC][Peephole] Combine extsw and sldi after instruction selection

Authored by lkail on Jul 8 2019, 7:55 PM.

Description

[PowerPC][Peephole] Combine extsw and sldi after instruction selection

Summary:
extsw and sldi are supposed to be combined if they are in the same
BB in instruction selection phase. This patch handles the case where
extsw and sldi are not in the same BB.

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

llvm-svn: 365430