[llvm] r288200 - [StructurizeCFG] Fix infinite loop in rebuildSSA.

Justin Lebar via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 30 11:02:53 PST 2016


> I think you need to either remove the amdgpu specific parts of the IR, or create an AMDGPU subdirectory with required AMDGPU target in the lit.local.cfg

I tried getting rid of the AMDGPU-specific stuff, but it was
challenging (at least for me, a nonexpert in the target), particularly
because the bug seems to require function calls, but AMDGPU seems to
require inlining all non-intrinsics (or something like that).

When I was writing this, I noticed that invert-constantexpr.ll also
has amdgpu-specific stuff, but maybe that's also a bug.

On Wed, Nov 30, 2016 at 10:59 AM, Matt Arsenault <arsenm2 at gmail.com> wrote:
>
> On Nov 29, 2016, at 16:49, Justin Lebar via llvm-commits
> <llvm-commits at lists.llvm.org> wrote:
>
> +; RUN: opt -o /dev/null -structurizecfg %s
> +
> +; The following function caused an infinite loop inside the structurizer's
> +; rebuildSSA routine, where we were iterating over an instruction's uses
> while
> +; modifying the use list, without taking care to do this safely.
> +
> +target triple = "amdgcn--"
> +
>
>
> I think you need to either remove the amdgpu specific parts of the IR, or
> create an AMDGPU subdirectory with required AMDGPU target in the
> lit.local.cfg
>
> -Matt


More information about the llvm-commits mailing list