[all-commits] [llvm/llvm-project] 35bfc0: [InstCombine] Fix type mismatch in `foldBitmaskMul...

Iris Shi via All-commits all-commits at lists.llvm.org
Thu May 28 00:48:24 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 35bfc00c5c8db8b5895b83045bbd9562691c0af1
      https://github.com/llvm/llvm-project/commit/35bfc00c5c8db8b5895b83045bbd9562691c0af1
  Author: Iris Shi <0.0 at owo.li>
  Date:   2026-05-28 (Thu, 28 May 2026)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
    M llvm/test/Transforms/InstCombine/or-bitmask.ll

  Log Message:
  -----------
  [InstCombine] Fix type mismatch in `foldBitmaskMul` (#199920)

Resolves #199506.

`matchBitmaskMul` matches the form `!(A & N) ? 0 : N * C`.

When the select arms are splat vectors but A is a scalar, this produces
malformed ir like `%57 = and i64 %49, <4 x i64> splat (i64
3689348814741910323)`.

Reproducer: https://godbolt.org/z/EYzKTxcKn



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