[all-commits] [llvm/llvm-project] d6dd93: [IndVars] IV user should not prevent use widening

max-azul via All-commits all-commits at lists.llvm.org
Wed Nov 11 21:02:45 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d6dd9385893e034c7c3561e5d47dc5cf3bce4552
      https://github.com/llvm/llvm-project/commit/d6dd9385893e034c7c3561e5d47dc5cf3bce4552
  Author: Max Kazantsev <mkazantsev at azul.com>
  Date:   2020-11-12 (Thu, 12 Nov 2020)

  Changed paths:
    M llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
    M llvm/test/Transforms/IndVarSimplify/widen-loop-comp.ll

  Log Message:
  -----------
  [IndVars] IV user should not prevent use widening

Sometimes the an instruction we are trying to widen is used by the IV
(which means the instruction is the IV increment). Currently this may
prevent its widening. We should ignore such user because it will be
dead once the transform is done anyways.

Differential Revision: https://reviews.llvm.org/D90920
Reviewed By: fhahn




More information about the All-commits mailing list