[all-commits] [llvm/llvm-project] 5d1ba5: [LoopReroll] Add an extra defensive check to avoid...

Eli Friedman via All-commits all-commits at lists.llvm.org
Tue Jul 13 12:17:34 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5d1ba534043707a7b41542e9d1e514483f88503a
      https://github.com/llvm/llvm-project/commit/5d1ba534043707a7b41542e9d1e514483f88503a
  Author: Eli Friedman <efriedma at quicinc.com>
  Date:   2021-07-13 (Tue, 13 Jul 2021)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LoopRerollPass.cpp
    M llvm/test/Transforms/LoopReroll/basic.ll

  Log Message:
  -----------
  [LoopReroll] Add an extra defensive check to avoid SCEV assertion.

Make sure getMinusSCEV() didn't return a pointer.  The following check
would never succeed if it was a pointer, anyway, but calling
getMulExpr() on a pointer SCEV now asserts.




More information about the All-commits mailing list