[all-commits] [llvm/llvm-project] 8fab9f: [IndVars] Sharpen context in eliminateIVComparison

max-azul via All-commits all-commits at lists.llvm.org
Sun Mar 21 21:56:32 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8fab9f824fcaa38edebbd0f6b86f8612a4212cdd
      https://github.com/llvm/llvm-project/commit/8fab9f824fcaa38edebbd0f6b86f8612a4212cdd
  Author: Max Kazantsev <mkazantsev at azul.com>
  Date:   2021-03-22 (Mon, 22 Mar 2021)

  Changed paths:
    M llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
    M llvm/test/Transforms/IndVarSimplify/eliminate-comparison.ll

  Log Message:
  -----------
  [IndVars] Sharpen context in eliminateIVComparison

When eliminating comparisons, we can use common dominator of
all its users as context. This gives better results when ICMP is not
computed right before the branch that uses it.

Differential Revision: https://reviews.llvm.org/D98924
Reviewed By: lebedev.ri




More information about the All-commits mailing list