[all-commits] [llvm/llvm-project] 1ddf4e: [X86] getTargetConstantBitsFromNode - early-out if...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Mon Jul 28 00:39:05 PDT 2025


  Branch: refs/heads/release/21.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 1ddf4e3887dabc6a742254407b5bb99b2adc804c
      https://github.com/llvm/llvm-project/commit/1ddf4e3887dabc6a742254407b5bb99b2adc804c
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2025-07-28 (Mon, 28 Jul 2025)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/vec_extract.ll

  Log Message:
  -----------
  [X86] getTargetConstantBitsFromNode - early-out if the element bitsize doesn't align with the source bitsize (#150184)

As we use getTargetConstantBitsFromNode in a wider variety of places we can't guarantee that all the sources match (or are legal) anymore - better to early out than assert.

Fixes #150117

(cherry picked from commit 33455825428f9e1b7998a66e228da7f6d483acf8)



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list