[all-commits] [llvm/llvm-project] ee94a4: [Attributor][FIX] Avoid endless recursion, simple ...

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Wed Mar 23 13:55:58 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ee94a4a3d02f0cc7496eb91ea7d5c0819a6b32a0
      https://github.com/llvm/llvm-project/commit/ee94a4a3d02f0cc7496eb91ea7d5c0819a6b32a0
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2022-03-23 (Wed, 23 Mar 2022)

  Changed paths:
    M llvm/lib/Transforms/IPO/AttributorAttributes.cpp
    A llvm/test/Transforms/OpenMP/attributor_recursion_crash.ll

  Log Message:
  -----------
  [Attributor][FIX] Avoid endless recursion, simple case

There is potential for endless recursion if we try to determine the
underlying objects of a load, just to end up with the load as underlying
object. A proper solution will require us to pass a visited set around.
This will happen as we cleanup genericValueTraversal soon.




More information about the All-commits mailing list