[all-commits] [llvm/llvm-project] 36f1c3: [NFCI][ValueTracking] getUnderlyingObject(): asser...

Roman Lebedev via All-commits all-commits at lists.llvm.org
Mon Mar 15 01:53:41 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 36f1c3db66f7268ea3183bcf0bbf05b3e1c570b4
      https://github.com/llvm/llvm-project/commit/36f1c3db66f7268ea3183bcf0bbf05b3e1c570b4
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2021-03-15 (Mon, 15 Mar 2021)

  Changed paths:
    M llvm/lib/Analysis/ValueTracking.cpp

  Log Message:
  -----------
  [NFCI][ValueTracking] getUnderlyingObject(): assert that no cycles are encountered

Jeroen Dobbelaere in
https://lists.llvm.org/pipermail/llvm-dev/2021-March/149206.html
is reporting that this function can end up in an endless loop
when called from SROA w/ full restrict patches.

For now, simply ensure that such problems are caught earlier/easier.




More information about the All-commits mailing list