[all-commits] [llvm/llvm-project] f92bfc: [AArch64] All bits of an exact right shift are dem...

Momchil Velikov via All-commits all-commits at lists.llvm.org
Fri Jul 5 08:01:21 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f92bfca9fc217cad9026598ef6755e711c0be070
      https://github.com/llvm/llvm-project/commit/f92bfca9fc217cad9026598ef6755e711c0be070
  Author: Momchil Velikov <momchil.velikov at arm.com>
  Date:   2024-07-05 (Fri, 05 Jul 2024)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
    A llvm/test/CodeGen/AArch64/shr-exact-demanded-bits.ll

  Log Message:
  -----------
  [AArch64] All bits of an exact right shift are demanded (#97448)

When building a vector which contains zero elements, the AArch64 ISel
replaces those elements with `undef`, if they are right shifted out.

However, these elements need to stay zero if the right shift is exact,
or otherwise we will be introducing undefined behavior.

Should allow https://github.com/llvm/llvm-project/pull/92528 to be
recommitted.



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