HomePhabricator

[PowerPC] Add a peephole post RA to transform the inst that fed by add

Description

[PowerPC] Add a peephole post RA to transform the inst that fed by add

If the arch is P8, we will select XFLOAD to load the floating point, and then, expand it to vsx and non-vsx X-form instruction post RA. This patch is trying to convert the X-form to D-form if it meets the requirement that one operand of the x-form inst is the special Zero register, and another operand fed by add inst. i.e.
y = add imm, reg
LFDX. 0, y
-->
LFD imm(reg)

Reviewers: Nemanjai
Differential Revision: https://reviews.llvm.org/D49007

Details

Committed
qshanzAug 19 2018, 7:52 PM
Differential Revision
D49007: [PowerPC] Add a peephole post RA to transform the inst that fed by add
Parents
rL340148: [bindings/go] Add coroutine passes
Branches
Unknown
Tags
Unknown