Skip to content

Commit

Permalink
formatting change
Browse files Browse the repository at this point in the history
  • Loading branch information
gbaraldi committed Jan 26, 2024
1 parent 3d6e14a commit 58d3c12
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions llvm/lib/Passes/PassBuilderPipelines.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1435,13 +1435,13 @@ PassBuilder::buildModuleOptimizationPipeline(OptimizationLevel Level,
// And finally clean up LCSSA form before generating code.
OptimizePM.addPass(InstSimplifyPass());


// This hoists/decomposes div/rem ops. It should run after other sink/hoist
// passes to avoid re-sinking, but before SimplifyCFG because it can allow
// flattening of blocks.
OptimizePM.addPass(DivRemPairsPass());

// Detect and convert memcmp like idioms to the call then expand them if profitable
// Detect and convert memcmp like idioms to the call then expand them if
// profitable
OptimizePM.addPass(MergeICmpsPass());
OptimizePM.addPass(ExpandMemCmpPass());

Expand Down Expand Up @@ -1967,7 +1967,8 @@ PassBuilder::buildLTODefaultPipeline(OptimizationLevel Level,
// flattening of blocks.
LateFPM.addPass(DivRemPairsPass());

// Detect and convert memcmp like idioms to the call then expand them if profitable
// Detect and convert memcmp like idioms to the call then expand them if
// profitable
LateFPM.addPass(MergeICmpsPass());
LateFPM.addPass(ExpandMemCmpPass());

Expand Down

0 comments on commit 58d3c12

Please sign in to comment.