HomePhabricator

[RISCV] Add test cases that show failure to use some W instructions if they are…

Authored by craig.topper on Jun 10 2021, 4:42 PM.

Description

[RISCV] Add test cases that show failure to use some W instructions if they are proceeded by a load. NFC

The loads end up becoming sextload/zextload which prevent our
isel patterns from finding the sign_extend_inreg or AND instruction
we need.

The easiest way to fix this is to use computeKnownBits or
ComputeNumSignBits in our isel matching to catch this.

Details

Committed
craig.topperJun 10 2021, 4:55 PM
Parents
rGffaca140d01b: [IR] Value: Fix OpCode checks
Branches
Unknown
Tags
Unknown