[all-commits] [llvm/llvm-project] a14f94: [X86] computeKnownBitsForTargetNode - out of range...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Sat Jul 30 09:55:57 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a14f94c20c65c80ba712567c4e8cb55dd939415b
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-07-30 (Sat, 30 Jul 2022)

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

  Log Message:
  [X86] computeKnownBitsForTargetNode - out of range X86ISD::VSRAI doesn't fold to zero

Noticed by inspection and I can't seem to make a test case, but SSE arithmetic bit shifts clamp to the max shift amount (i.e. create a sign splat) - combineVectorShiftImm already does something similar.

More information about the All-commits mailing list