[all-commits] [llvm/llvm-project] 9c4815: [SCEV] Remove premature assert. PR46786

Hans via All-commits all-commits at lists.llvm.org
Thu Jul 23 06:12:30 PDT 2020


  Branch: refs/heads/release/11.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 9c48156c25f96cbd3b3405a53f681fee521514fa
      https://github.com/llvm/llvm-project/commit/9c48156c25f96cbd3b3405a53f681fee521514fa
  Author: Max Kazantsev <mkazantsev at azul.com>
  Date:   2020-07-23 (Thu, 23 Jul 2020)

  Changed paths:
    M llvm/lib/Analysis/ScalarEvolution.cpp
    A llvm/test/Analysis/ScalarEvolution/pr46786.ll

  Log Message:
  -----------
  [SCEV] Remove premature assert. PR46786

This assert was added to verify assumption that GEP's SCEV will be of pointer type,
basing on fact that it should be a SCEVAddExpr with (at least) last operand being
pointer. Two notes:
- GEP's SCEV does not have to be a SCEVAddExpr after all simplifications;
- In current state, GEP's SCEV does not have to have at least one pointer operands
  (all of them can become int during the transforms).

However, we might want to be at a point where it is true. We are currently removing
this assert and will try to enumerate the cases where "is pointer" notion might be
lost during the transforms. When all of them are fixed, we can return it.

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

(cherry picked from commit b96114c1e1fc4448ea966bce013706359aee3fa9)


  Commit: e9d37a2ee97f820bc65e2badf5142414495580e5
      https://github.com/llvm/llvm-project/commit/e9d37a2ee97f820bc65e2badf5142414495580e5
  Author: Hans Wennborg <hans at chromium.org>
  Date:   2020-07-23 (Thu, 23 Jul 2020)

  Changed paths:
    M llvm/test/Analysis/ScalarEvolution/pr46786.ll

  Log Message:
  -----------
  Drop the npm run line from llvm/test/Analysis/ScalarEvolution/pr46786.ll
since it's failing.


Compare: https://github.com/llvm/llvm-project/compare/2f1aff832538...e9d37a2ee97f


More information about the All-commits mailing list