[X86] Return from SimplifyDemandedBitsForTargetNode after calculating known bits...
authorCraig Topper <craig.topper@intel.com>
Sat, 19 Sep 2020 06:37:50 +0000 (23:37 -0700)
committerCraig Topper <craig.topper@intel.com>
Sat, 19 Sep 2020 06:57:01 +0000 (23:57 -0700)
commit721d57f952ba0dbe02908fc897374dd6324668b9
tree94981e70b9a2f6c83457a6e7051870736a715efa
parent5a50f8b39f4e02cc05e78f1faf3c82c9c7449026
[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.
llvm/lib/Target/X86/X86ISelLowering.cpp