[all-commits] [llvm/llvm-project] 11725b: [InstCombine] Add tests for incorrect range handli...

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Jun 4 06:48:34 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 11725b5240840e077c944af6a56e75dd00275395
      https://github.com/llvm/llvm-project/commit/11725b5240840e077c944af6a56e75dd00275395
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-06-04 (Tue, 04 Jun 2024)

  Changed paths:
    M llvm/test/Transforms/InstCombine/select-cmp-cttz-ctlz.ll

  Log Message:
  -----------
  [InstCombine] Add tests for incorrect range handling in ctz fold (NFC)


  Commit: 3cd67eeca28ab1084d02b7976de1af4c4c8d37d5
      https://github.com/llvm/llvm-project/commit/3cd67eeca28ab1084d02b7976de1af4c4c8d37d5
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-06-04 (Tue, 04 Jun 2024)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
    M llvm/test/Transforms/InstCombine/select-cmp-cttz-ctlz.ll

  Log Message:
  -----------
  [InstCombine] Drop range attr in select of ctz fold

The range may no longer be valid after the select has been
optimized away.

This fixes the kernel miscompiles reported at
https://github.com/ClangBuiltLinux/linux/issues/2031.


Compare: https://github.com/llvm/llvm-project/compare/e651ee98cfcd...3cd67eeca28a

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