[all-commits] [llvm/llvm-project] da4193: [NFC][IndVarSimplify] Test: replacing IV user with...

Roman Lebedev via All-commits all-commits at lists.llvm.org
Thu Jun 18 09:36:13 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: da419320ef22c68b8178e1e349398877448b163f
      https://github.com/llvm/llvm-project/commit/da419320ef22c68b8178e1e349398877448b163f
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2020-06-18 (Thu, 18 Jun 2020)

  Changed paths:
    A llvm/test/Transforms/IndVarSimplify/X86/pr45360.ll

  Log Message:
  -----------
  [NFC][IndVarSimplify] Test: replacing IV user with unsafe loop-invariant (PR45360)

https://bugs.llvm.org/show_bug.cgi?id=45360

This is reduced from the (runnable) test provided in the bug report.
The remainder operation is originally guarded, it never divides by zero.
Indvars should not make it execute unconditionally.

This is not a great test, running whole -O2 is fragile,
but i really don't understand why running -indvars on the IR before
that tranform happens doesn't work.




More information about the All-commits mailing list