HomePhabricator

[ARM] Add v8m.base pattern for add negative imm

Authored by samparker on Feb 11 2019, 3:35 AM.

Description

[ARM] Add v8m.base pattern for add negative imm

The v8m.base ISA contains movw, which can operate on an unsigned
16-bit value. Add the pattern that converts an add with a negative
value, that could fit into 16-bits when negated, into a sub with that
positive value.

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

llvm-svn: 353692

Details

Committed
samparkerFeb 11 2019, 3:35 AM
Differential Revision
D57942: [ARM] Add v8m.base pattern for add negative imm
Parents
rGded96df01e95: [AMDGPU] Enable DPP combiner pass by default.
Branches
Unknown
Tags
Unknown