HomePhabricator

[X86] Return from SimplifyDemandedBitsForTargetNode after calculating known…

Authored by craig.topper on Sep 18 2020, 11:37 PM.

Description

[X86] Return from SimplifyDemandedBitsForTargetNode after calculating known bits for VSHLI/VSRAI/VSRLI.

We were breaking out of the switch which falls into the default
implementation of SimplifyDemandedBitsForTargetNode which is a
wrapper around computeKnownBits. So we end up doing the recursion
and known bits calculation all over again. Instead we should return
with the known bits we calculated in the switch.

Details

Committed
craig.topperSep 18 2020, 11:57 PM
Parents
rG5a50f8b39f4e: [AArch64][GlobalISel] Add legalization and selection support for <4 x s16>…
Branches
Unknown
Tags
Unknown