HomePhabricator

[RISCV] Add isel patterns to optimize slli.uw patterns without Zba extension.

Authored by craig.topper on Jan 25 2021, 3:59 PM.

Description

[RISCV] Add isel patterns to optimize slli.uw patterns without Zba extension.

This pattern can occur when an unsigned is used to index an array
on RV64.

Reviewed By: luismarques

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