HomePhabricator

[RISCV] Don't convert fshr/fshl to target specific FSL/FSR node if shift amount…

Authored by craig.topper on Sat, Apr 3, 11:05 PM.

Description

[RISCV] Don't convert fshr/fshl to target specific FSL/FSR node if shift amount is a constant.

As long as it's a constant we can directly pattern match it
without any problems. It's only when it isn't a constant that
we need to add an AND.

In theory this should allow more target independent optimizations
to remain active.

Details

Committed
craig.topperSat, Apr 3, 11:13 PM
Parents
rG1b4800c26259: [clang][parser] Set source ranges for GNU-style attributes
Branches
Unknown
Tags
Unknown