[all-commits] [llvm/llvm-project] 8107b4: [VPlan] Simplify select c, x, x -> x (#133731)

Luke Lau via All-commits all-commits at lists.llvm.org
Wed Apr 2 02:27:10 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8107b430edb38dc798fe4e710df13d4b2e98acfb
      https://github.com/llvm/llvm-project/commit/8107b430edb38dc798fe4e710df13d4b2e98acfb
  Author: Luke Lau <luke at igalia.com>
  Date:   2025-04-02 (Wed, 02 Apr 2025)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
    M llvm/test/Transforms/LoopVectorize/X86/cost-model.ll
    M llvm/test/Transforms/LoopVectorize/is_fpclass.ll
    M llvm/test/Transforms/LoopVectorize/select-reduction.ll

  Log Message:
  -----------
  [VPlan] Simplify select c, x, x -> x (#133731)

As noted in 1a9358c090d0507be21c5e9b2d97a23ef1de8ab0, some
simplifications can produce a redundant select where the true and false
operands are the same, which this patch removes.

The is_fpclass test was changed so the condition wasn't made dead.



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