HomePhabricator

[SelectionDAG] Better legalization for FSHL and FSHR

Authored by foad on Mar 31 2020, 9:24 AM.

Description

[SelectionDAG] Better legalization for FSHL and FSHR

In SelectionDAGBuilder always translate the fshl and fshr intrinsics to
FSHL and FSHR (or ROTL and ROTR) instead of lowering them to shifts and
ORs. Improve the legalization of FSHL and FSHR to avoid code quality
regressions.

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

Details

Committed
foadAug 21 2020, 2:32 AM
Differential Revision
D77152: [SelectionDAG] Better legalization for FSHL and FSHR
Parents
rGc6863a4ab8b9: [X86] Enable constexpr on POPCNT intrinsics (PR31446)
Branches
Unknown
Tags
Unknown