[all-commits] [llvm/llvm-project] c630e1: [InstSimplify] Simplify both operands of select be...

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon Jan 6 05:43:51 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c630e13676009757400d5c2c22ba3e1f842cf925
      https://github.com/llvm/llvm-project/commit/c630e13676009757400d5c2c22ba3e1f842cf925
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2025-01-06 (Mon, 06 Jan 2025)

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

  Log Message:
  -----------
  [InstSimplify] Simplify both operands of select before comparing (#121753)

In the simplifySelectWithEquivalence fold, simplify both operands before
comparing them, instead of comparing one simplified operand with a
non-simplified operand. This is slightly more powerful.



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