HomePhabricator

[X86] Add getPack helper

Authored by RKSimon on Sun, Nov 14, 1:27 PM.

Description

[X86] Add getPack helper

This helper provides a more complete approach for lowering to X86ISD::PACKSS/PACKUS nodes - testing for existing suitable sign/zero extension before recreating it.

It also optionally packs the upper half instead of the lower half.

Details

Committed
RKSimonSun, Nov 14, 1:27 PM
Parents
rG4081df43b6dc: [llvm-reduce] Remove unnecessary loop.
Branches
Unknown
Tags
Unknown