This is an archive of the discontinued LLVM Phabricator instance.

[Polly] Allow to generate a loop without the GuardBB
ClosedPublic

Authored by jdoerfert on Sep 10 2014, 8:37 AM.

Details

Summary
This allows us to omit the GuardBB in front of created loops
if we can show the loop trip count is at least one. It also
simplifies the dominance relation inside the new created region.
A GuardBB (even with a constant branch condition) might trigger
false dominance errors during function verification.

Diff Detail

Repository
rL LLVM

Event Timeline

jdoerfert updated this revision to Diff 13547.Sep 10 2014, 8:37 AM
jdoerfert retitled this revision from to Allow to generate a loop without the GuardBB.
jdoerfert updated this object.
jdoerfert added subscribers: Restricted Project, Unknown Object (MLST).
jdoerfert retitled this revision from Allow to generate a loop without the GuardBB to [Polly] Allow to generate a loop without the GuardBB.Sep 10 2014, 8:38 AM
dpeixott edited edge metadata.Sep 10 2014, 10:32 AM

Needs a test case to demonstrate the omission of the guard bb. Otherwise, LGTM.

jdoerfert closed this revision.Sep 10 2014, 10:43 AM
jdoerfert updated this revision to Diff 13552.

Closed by commit rL217525 (authored by @jdoerfert).