This is an archive of the discontinued LLVM Phabricator instance.

[NewPM] Add Option handling for SimpleLoopUnswitch
ClosedPublic

Authored by skatkov on Apr 15 2019, 1:17 AM.

Details

Diff Detail

Repository
rL LLVM

Event Timeline

skatkov created this revision.Apr 15 2019, 1:17 AM
fedor.sergeev requested changes to this revision.Apr 17 2019, 10:40 PM
fedor.sergeev added inline comments.
lib/Passes/PassBuilder.cpp
1432 ↗(On Diff #195101)

can we make it "nontrivial" without a dash?
Otherwise no-non-trivial looks too weird...

1441 ↗(On Diff #195101)

What happens if params are empty?
There should be some default initialization.

This revision now requires changes to proceed.Apr 17 2019, 10:40 PM
skatkov marked 2 inline comments as done.Apr 17 2019, 10:54 PM
skatkov added inline comments.
lib/Passes/PassBuilder.cpp
1432 ↗(On Diff #195101)

ok.

1441 ↗(On Diff #195101)

SimpleLoopUnswitchPass has a default value
NonTrivial = false

skatkov updated this revision to Diff 195708.Apr 18 2019, 3:28 AM

comments handled.

fedor.sergeev added inline comments.Apr 18 2019, 10:54 PM
lib/Passes/PassBuilder.cpp
1494 ↗(On Diff #195708)

there should be default initialization for Result.

fedor.sergeev requested changes to this revision.Apr 21 2019, 7:23 AM
This revision now requires changes to proceed.Apr 21 2019, 7:23 AM
skatkov updated this revision to Diff 196033.Apr 21 2019, 10:14 PM

Handled comment, please review.

This revision is now accepted and ready to land.Apr 22 2019, 2:36 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptApr 22 2019, 3:34 AM