[all-commits] [llvm/llvm-project] 60429f: [InstCombine] Add more tests for select equivalenc...

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Jun 6 00:38:34 PDT 2024


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

  Changed paths:
    M llvm/test/Transforms/InstCombine/select.ll

  Log Message:
  -----------
  [InstCombine] Add more tests for select equivalence fold (NFC)


  Commit: 9bea770b63861250c8bbec46f68df73da4f09508
      https://github.com/llvm/llvm-project/commit/9bea770b63861250c8bbec46f68df73da4f09508
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-06-06 (Thu, 06 Jun 2024)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
    M llvm/test/Transforms/InstCombine/select.ll

  Log Message:
  -----------
  [InstCombine] Only requite not-undef in select equiv fold

As the comment already indicates, only replacement with undef
is problematic, as it introduces an additional use of undef.
Use the correct ValueTracking helper.


Compare: https://github.com/llvm/llvm-project/compare/fb0c705dbf27...9bea770b6386

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