HomePhabricator

[RISCV] Improve 64-bit integer constant materialization for more cases.

Authored by craig.topper on Apr 2 2021, 10:17 AM.

Description

[RISCV] Improve 64-bit integer constant materialization for more cases.

For positive constants we try shifting left to remove leading zeros
and fill the bottom bits with 1s. We then materialize that constant
shift it right.

This patch adds a new strategy to try filling the bottom bits with
zeros instead. This catches some additional cases.

Details

Committed
craig.topperApr 2 2021, 10:18 AM
Parents
rGf6790bec5c22: [RISCV] Add missing CHECK-EXPAND line to one case in rv64i-aliases-valid.s.
Branches
Unknown
Tags
Unknown