Skip to content

Commit 0a8ebb3

Browse files
committed
Add missing conflict resolution
1 parent 1a2c1b3 commit 0a8ebb3

File tree

2 files changed

+0
-137
lines changed

2 files changed

+0
-137
lines changed

llvm/lib/Passes/PassBuilderPipelines.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -300,14 +300,8 @@ PipelineTuningOptions::PipelineTuningOptions() {
300300
namespace llvm {
301301
extern cl::opt<unsigned> MaxDevirtIterations;
302302
extern cl::opt<bool> EnableKnowledgeRetention;
303-
<<<<<<< HEAD
304-
extern cl::opt<bool> EnableMatrix;
305-
extern cl::opt<bool> DisablePreInliner;
306-
extern cl::opt<int> PreInlineThreshold;
307303

308304
extern cl::opt<bool> SYCLOptimizationMode;
309-
=======
310-
>>>>>>> cbcf123af293ee56876cce16dac83c3008478dae
311305
} // namespace llvm
312306

313307
void PassBuilder::invokePeepholeEPCallbacks(FunctionPassManager &FPM,

llvm/lib/Transforms/IPO/PassManagerBuilder.cpp

Lines changed: 0 additions & 131 deletions
Original file line numberDiff line numberDiff line change
@@ -43,134 +43,11 @@
4343

4444
using namespace llvm;
4545

46-
<<<<<<< HEAD
4746
namespace llvm {
4847
cl::opt<bool> SYCLOptimizationMode("sycl-opt", cl::init(false), cl::Hidden,
4948
cl::desc("Enable SYCL optimization mode."));
50-
cl::opt<bool> RunPartialInlining("enable-partial-inlining", cl::Hidden,
51-
cl::desc("Run Partial inlinining pass"));
52-
53-
static cl::opt<bool>
54-
UseGVNAfterVectorization("use-gvn-after-vectorization",
55-
cl::init(false), cl::Hidden,
56-
cl::desc("Run GVN instead of Early CSE after vectorization passes"));
57-
58-
cl::opt<bool> ExtraVectorizerPasses(
59-
"extra-vectorizer-passes", cl::init(false), cl::Hidden,
60-
cl::desc("Run cleanup optimization passes after vectorization."));
61-
62-
static cl::opt<bool>
63-
RunLoopRerolling("reroll-loops", cl::Hidden,
64-
cl::desc("Run the loop rerolling pass"));
65-
66-
cl::opt<bool> RunNewGVN("enable-newgvn", cl::init(false), cl::Hidden,
67-
cl::desc("Run the NewGVN pass"));
68-
69-
// Experimental option to use CFL-AA
70-
static cl::opt<::CFLAAType>
71-
UseCFLAA("use-cfl-aa", cl::init(::CFLAAType::None), cl::Hidden,
72-
cl::desc("Enable the new, experimental CFL alias analysis"),
73-
cl::values(clEnumValN(::CFLAAType::None, "none", "Disable CFL-AA"),
74-
clEnumValN(::CFLAAType::Steensgaard, "steens",
75-
"Enable unification-based CFL-AA"),
76-
clEnumValN(::CFLAAType::Andersen, "anders",
77-
"Enable inclusion-based CFL-AA"),
78-
clEnumValN(::CFLAAType::Both, "both",
79-
"Enable both variants of CFL-AA")));
80-
81-
cl::opt<bool> EnableLoopInterchange(
82-
"enable-loopinterchange", cl::init(false), cl::Hidden,
83-
cl::desc("Enable the experimental LoopInterchange Pass"));
84-
85-
cl::opt<bool> EnableUnrollAndJam("enable-unroll-and-jam", cl::init(false),
86-
cl::Hidden,
87-
cl::desc("Enable Unroll And Jam Pass"));
88-
89-
cl::opt<bool> EnableLoopFlatten("enable-loop-flatten", cl::init(false),
90-
cl::Hidden,
91-
cl::desc("Enable the LoopFlatten Pass"));
92-
93-
cl::opt<bool> EnableDFAJumpThreading("enable-dfa-jump-thread",
94-
cl::desc("Enable DFA jump threading."),
95-
cl::init(false), cl::Hidden);
96-
97-
cl::opt<bool> EnableHotColdSplit("hot-cold-split",
98-
cl::desc("Enable hot-cold splitting pass"));
99-
100-
cl::opt<bool> EnableIROutliner("ir-outliner", cl::init(false), cl::Hidden,
101-
cl::desc("Enable ir outliner pass"));
102-
103-
static cl::opt<bool> UseLoopVersioningLICM(
104-
"enable-loop-versioning-licm", cl::init(false), cl::Hidden,
105-
cl::desc("Enable the experimental Loop Versioning LICM pass"));
106-
107-
cl::opt<bool>
108-
DisablePreInliner("disable-preinline", cl::init(false), cl::Hidden,
109-
cl::desc("Disable pre-instrumentation inliner"));
110-
111-
cl::opt<int> PreInlineThreshold(
112-
"preinline-threshold", cl::Hidden, cl::init(75),
113-
cl::desc("Control the amount of inlining in pre-instrumentation inliner "
114-
"(default = 75)"));
115-
116-
cl::opt<bool>
117-
EnableGVNHoist("enable-gvn-hoist",
118-
cl::desc("Enable the GVN hoisting pass (default = off)"));
119-
120-
static cl::opt<bool>
121-
DisableLibCallsShrinkWrap("disable-libcalls-shrinkwrap", cl::init(false),
122-
cl::Hidden,
123-
cl::desc("Disable shrink-wrap library calls"));
124-
125-
cl::opt<bool>
126-
EnableGVNSink("enable-gvn-sink",
127-
cl::desc("Enable the GVN sinking pass (default = off)"));
128-
129-
// This option is used in simplifying testing SampleFDO optimizations for
130-
// profile loading.
131-
cl::opt<bool>
132-
EnableCHR("enable-chr", cl::init(true), cl::Hidden,
133-
cl::desc("Enable control height reduction optimization (CHR)"));
134-
135-
cl::opt<bool> FlattenedProfileUsed(
136-
"flattened-profile-used", cl::init(false), cl::Hidden,
137-
cl::desc("Indicate the sample profile being used is flattened, i.e., "
138-
"no inline hierachy exists in the profile. "));
139-
140-
cl::opt<bool> EnableOrderFileInstrumentation(
141-
"enable-order-file-instrumentation", cl::init(false), cl::Hidden,
142-
cl::desc("Enable order file instrumentation (default = off)"));
143-
144-
cl::opt<bool> EnableMatrix(
145-
"enable-matrix", cl::init(false), cl::Hidden,
146-
cl::desc("Enable lowering of the matrix intrinsics"));
147-
148-
cl::opt<bool> EnableConstraintElimination(
149-
"enable-constraint-elimination", cl::init(false), cl::Hidden,
150-
cl::desc(
151-
"Enable pass to eliminate conditions based on linear constraints."));
152-
153-
cl::opt<bool> EnableFunctionSpecialization(
154-
"enable-function-specialization", cl::init(false), cl::Hidden,
155-
cl::desc("Enable Function Specialization pass"));
156-
157-
cl::opt<AttributorRunOption> AttributorRun(
158-
"attributor-enable", cl::Hidden, cl::init(AttributorRunOption::NONE),
159-
cl::desc("Enable the attributor inter-procedural deduction pass."),
160-
cl::values(clEnumValN(AttributorRunOption::ALL, "all",
161-
"enable all attributor runs"),
162-
clEnumValN(AttributorRunOption::MODULE, "module",
163-
"enable module-wide attributor runs"),
164-
clEnumValN(AttributorRunOption::CGSCC, "cgscc",
165-
"enable call graph SCC attributor runs"),
166-
clEnumValN(AttributorRunOption::NONE, "none",
167-
"disable attributor runs")));
168-
169-
extern cl::opt<bool> EnableKnowledgeRetention;
17049
} // namespace llvm
17150

172-
=======
173-
>>>>>>> cbcf123af293ee56876cce16dac83c3008478dae
17451
PassManagerBuilder::PassManagerBuilder() {
17552
OptLevel = 2;
17653
SizeLevel = 0;
@@ -320,17 +197,9 @@ void PassManagerBuilder::addFunctionSimplificationPasses(
320197
if (!SYCLOptimizationMode)
321198
MPM.add(createReassociatePass()); // Reassociate expressions
322199

323-
<<<<<<< HEAD
324-
// The matrix extension can introduce large vector operations early, which can
325-
// benefit from running vector-combine early on.
326-
if (EnableMatrix)
327-
MPM.add(createVectorCombinePass());
328-
329200
// Do not run loop pass pipeline in "SYCL Optimization Mode". Loop
330201
// optimizations rely on TTI, which is not accurate for SPIR target.
331202
if (!SYCLOptimizationMode) { // broken formatting to simplify pulldown
332-
=======
333-
>>>>>>> cbcf123af293ee56876cce16dac83c3008478dae
334203
// Begin the loop pass pipeline.
335204

336205
// The simple loop unswitch pass relies on separate cleanup passes. Schedule

0 commit comments

Comments
 (0)