[all-commits] [llvm/llvm-project] 721d57: [X86] Return from SimplifyDemandedBitsForTargetNod...

topperc via All-commits all-commits at lists.llvm.org
Fri Sep 18 23:57:21 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 721d57f952ba0dbe02908fc897374dd6324668b9
      https://github.com/llvm/llvm-project/commit/721d57f952ba0dbe02908fc897374dd6324668b9
  Author: Craig Topper <craig.topper at intel.com>
  Date:   2020-09-18 (Fri, 18 Sep 2020)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp

  Log Message:
  -----------
  [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.




More information about the All-commits mailing list