14#ifndef LLVM_CODEGEN_GLOBALISEL_COMBINERINFO_H
15#define LLVM_CODEGEN_GLOBALISEL_COMBINERINFO_H
32 "Expecting legalizerInfo when illegalops not allowed");
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
This is an optimization pass for GlobalISel generic memory operations.
bool EnableMinSize
Whether we're optimizing for minsize (-Oz).
unsigned MaxIterations
The maximum number of times the Combiner will iterate over the MachineFunction.
CombinerInfo(bool AllowIllegalOps, bool ShouldLegalizeIllegal, const LegalizerInfo *LInfo, bool OptEnabled, bool OptSize, bool MinSize)
ObserverLevel ObserverLvl
Select how the Combiner acts on MIR changes.
const LegalizerInfo * LInfo
bool EnableFullDCE
Whether dead code elimination is performed before each Combiner iteration.
bool LegalizeIllegalOps
If LegalizeIllegalOps is true, the Combiner will also legalize the illegal ops that are created.
bool IllegalOpsAllowed
If IllegalOpsAllowed is false, the CombinerHelper will make use of the legalizerInfo to check for leg...
virtual ~CombinerInfo()=default
bool EnableOptSize
Whether we're optimizing for size.
bool EnableOpt
Whether optimizations should be enabled.
@ DCE
Enables Observer-based detection of dead instructions.
@ Basic
Only retry combining created/changed instructions.
@ SinglePass
Enables Observer-based DCE and additional heuristics that retry combining defined and used instructio...