HomePhabricator

[Thumb1] Any imm8 should have cost of 1

Authored by Zhaoshi Zheng <zhaoshiz@coduaurora.org> on Sep 24 2018, 9:15 AM.

Description

[Thumb1] Any imm8 should have cost of 1

A simple MOVS rd, imm8 can materialize [-128, 127] in signed i8 type or
[0, 255] in unsigned i8 type on Thumb1.

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

llvm-svn: 342898

Event Timeline

Zhaoshi Zheng <zhaoshiz@coduaurora.org> committed rG05b46dc30083: [Thumb1] Any imm8 should have cost of 1 (authored by Zhaoshi Zheng <zhaoshiz@coduaurora.org>).Sep 24 2018, 9:15 AM