HomePhabricator

[RISCV] Teach RISCVTargetLowering::shouldSinkOperands to sink splats for…

Authored by craig.topper on Sep 21 2021, 9:54 AM.

Description

[RISCV] Teach RISCVTargetLowering::shouldSinkOperands to sink splats for and/or/xor.

This requires a minor change to CodeGenPrepare to ensure that
shouldSinkOperands will be called for And.

Reviewed By: frasercrmck

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