Skip to content

Commit

Permalink
Partially Revert "cc: enable Polly globally"
Browse files Browse the repository at this point in the history
This reverts commit 8c0bc52e7dfd1205e529e5d873656676d18ff547.
  • Loading branch information
neobuddy89 authored and ReveRTX committed May 31, 2024
1 parent 9188334 commit 2cee08c
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions cc/lto.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,20 +125,6 @@ func (lto *lto) flags(ctx BaseModuleContext, flags Flags) Flags {
ltoCOnlyFlags = append(ltoCOnlyFlags, "-O3")
}

// Enable Polly globally
ltoCOnlyFlags = append(ltoCOnlyFlags, "-mllvm -polly")
ltoCOnlyFlags = append(ltoCOnlyFlags, "-mllvm -polly-parallel")
ltoCOnlyFlags = append(ltoCOnlyFlags, "-mllvm -polly-ast-use-context")
ltoCOnlyFlags = append(ltoCOnlyFlags, "-mllvm -polly-invariant-load-hoisting")
ltoCOnlyFlags = append(ltoCOnlyFlags, "-mllvm -polly-run-inliner")
ltoCOnlyFlags = append(ltoCOnlyFlags, "-mllvm -polly-loopfusion-greedy=1")
ltoCOnlyFlags = append(ltoCOnlyFlags, "-mllvm -polly-reschedule=1")
ltoCOnlyFlags = append(ltoCOnlyFlags, "-mllvm -polly-postopts=1")
ltoCOnlyFlags = append(ltoCOnlyFlags, "-mllvm -polly-omp-backend=LLVM")
ltoCOnlyFlags = append(ltoCOnlyFlags, "-mllvm -polly-scheduling=dynamic")
ltoCOnlyFlags = append(ltoCOnlyFlags, "-mllvm -polly-scheduling-chunksize=1")
ltoCOnlyFlags = append(ltoCOnlyFlags, "-mllvm -polly-vectorizer=stripmine")

if Bool(lto.Properties.Whole_program_vtables) {
ltoCFlags = append(ltoCFlags, "-fwhole-program-vtables")
}
Expand Down

0 comments on commit 2cee08c

Please sign in to comment.