Skip to content

Commit 3833c69

Browse files
committed
[Pipelines] Drop outdated comments about O0 (NFC)
These methods can be called with an O0 level nowadays.
1 parent 1a4696d commit 3833c69

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

llvm/include/llvm/Passes/PassBuilder.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,6 @@ class PassBuilder {
231231
/// optimization and code generation without any link-time optimization. It
232232
/// typically correspond to frontend "-O[123]" options for optimization
233233
/// levels \c O1, \c O2 and \c O3 resp.
234-
///
235-
/// Note that \p Level cannot be `O0` here. The pipelines produced are
236-
/// only intended for use when attempting to optimize code. If frontends
237-
/// require some transformations for semantic reasons, they should explicitly
238-
/// build them.
239234
ModulePassManager buildPerModuleDefaultPipeline(OptimizationLevel Level,
240235
bool LTOPreLink = false);
241236

@@ -246,11 +241,6 @@ class PassBuilder {
246241
/// a ThinLTO run. It works to minimize the IR which needs to be analyzed
247242
/// without making irreversible decisions which could be made better during
248243
/// the LTO run.
249-
///
250-
/// Note that \p Level cannot be `O0` here. The pipelines produced are
251-
/// only intended for use when attempting to optimize code. If frontends
252-
/// require some transformations for semantic reasons, they should explicitly
253-
/// build them.
254244
ModulePassManager buildThinLTOPreLinkDefaultPipeline(OptimizationLevel Level);
255245

256246
/// Build an ThinLTO default optimization pipeline to a pass manager.

0 commit comments

Comments
 (0)