[all-commits] [llvm/llvm-project] 0c9c6d: [IndVars] ICmpInst should not prevent IV widening

max-azul via All-commits all-commits at lists.llvm.org
Sun Nov 29 20:22:41 PST 2020


  Branch: refs/heads/temp-test-main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0c9c6ddf17bb01ae350a899b3395bb078aa0c62e
      https://github.com/llvm/llvm-project/commit/0c9c6ddf17bb01ae350a899b3395bb078aa0c62e
  Author: Max Kazantsev <mkazantsev at azul.com>
  Date:   2020-11-30 (Mon, 30 Nov 2020)

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

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

If we decided to widen IV with zext, then unsigned comparisons
should not prevent widening (same for sext/sign comparisons).
The result of comparison in wider type does not change in this case.

Differential Revision: https://reviews.llvm.org/D92207
Reviewed By: nikic




More information about the All-commits mailing list