This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Fix annotating loops with nested loop conditions
ClosedPublic

Authored by arsenm on Mar 14 2017, 8:00 PM.

Details

Reviewers
cfang
tstellar
Summary

If the branch condition for a loop was a phi which itself
was fed from a phi from a loop, it isn't safe to try
to delete the phi until after the loop is handled.

Diff Detail

Event Timeline

arsenm created this revision.Mar 14 2017, 8:00 PM

ping

lib/Target/AMDGPU/SIAnnotateControlFlow.cpp
189

This printing is broken since it tries to print the deleted node afterwards

cfang accepted this revision.Mar 22 2017, 9:56 AM
This revision is now accepted and ready to land.Mar 22 2017, 9:56 AM
t-tye added a subscriber: t-tye.Mar 22 2017, 6:40 PM
tony-tye removed a subscriber: tony-tye.Mar 22 2017, 6:47 PM
arsenm closed this revision.Mar 24 2017, 2:09 PM

r298737