This is an archive of the discontinued LLVM Phabricator instance.

[Polly] Allow switch instructions in SCoPs
ClosedPublic

Authored by jdoerfert on Sep 27 2015, 5:58 PM.

Details

Summary
This patch allows switch instructions with affine conditions in the
SCoP. Also switch instructions in non-affine subregions are allowed.
Both did not require much changes to the code, though there was some
refactoring needed to integrate them without code duplication.

In the llvm-test suite the number of profitable SCoPs increased from
135 to 139 but more importantly we can handle more benchmarks and user
inputs without preprocessing.

Diff Detail

Repository
rL LLVM

Event Timeline

jdoerfert updated this revision to Diff 35827.Sep 27 2015, 5:58 PM
jdoerfert retitled this revision from to [Polly] Allow switch instructions in SCoPs.
jdoerfert added reviewers: grosser, Meinersbur.
jdoerfert updated this object.
jdoerfert added a subscriber: Restricted Project.
grosser edited edge metadata.Sep 28 2015, 1:21 AM
grosser added a subscriber: grosser.

LGTM.

This revision was automatically updated to reflect the committed changes.