parent
7552d0d2e6
commit
de58e93666
|
@ -44,7 +44,7 @@ ArgAllocaCost("amdgpu-inline-arg-alloca-cost", cl::Hidden, cl::init(2200),
|
||||||
cl::desc("Cost of alloca argument"));
|
cl::desc("Cost of alloca argument"));
|
||||||
|
|
||||||
// If the amount of scratch memory to eliminate exceeds our ability to allocate
|
// If the amount of scratch memory to eliminate exceeds our ability to allocate
|
||||||
// it into registers we gain nothing by agressively inlining functions for that
|
// it into registers we gain nothing by aggressively inlining functions for that
|
||||||
// heuristic.
|
// heuristic.
|
||||||
static cl::opt<unsigned>
|
static cl::opt<unsigned>
|
||||||
ArgAllocaCutoff("amdgpu-inline-arg-alloca-cutoff", cl::Hidden, cl::init(256),
|
ArgAllocaCutoff("amdgpu-inline-arg-alloca-cutoff", cl::Hidden, cl::init(256),
|
||||||
|
|
|
@ -250,7 +250,7 @@ SDValue X86SelectionDAGInfo::EmitTargetCodeForMemcpy(
|
||||||
|
|
||||||
if (Repeats.BytesLeft() > 0 &&
|
if (Repeats.BytesLeft() > 0 &&
|
||||||
DAG.getMachineFunction().getFunction().optForMinSize()) {
|
DAG.getMachineFunction().getFunction().optForMinSize()) {
|
||||||
// When agressively optimizing for size, avoid generating the code to
|
// When aggressively optimizing for size, avoid generating the code to
|
||||||
// handle BytesLeft.
|
// handle BytesLeft.
|
||||||
Repeats.AVT = MVT::i8;
|
Repeats.AVT = MVT::i8;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2512,7 +2512,7 @@ Instruction *InstCombiner::visitSwitchInst(SwitchInst &SI) {
|
||||||
// Shrink the condition operand if the new type is smaller than the old type.
|
// Shrink the condition operand if the new type is smaller than the old type.
|
||||||
// But do not shrink to a non-standard type, because backend can't generate
|
// But do not shrink to a non-standard type, because backend can't generate
|
||||||
// good code for that yet.
|
// good code for that yet.
|
||||||
// TODO: We can make it agressive again after fixing PR39569.
|
// TODO: We can make it aggressive again after fixing PR39569.
|
||||||
if (NewWidth > 0 && NewWidth < Known.getBitWidth() &&
|
if (NewWidth > 0 && NewWidth < Known.getBitWidth() &&
|
||||||
shouldChangeType(Known.getBitWidth(), NewWidth)) {
|
shouldChangeType(Known.getBitWidth(), NewWidth)) {
|
||||||
IntegerType *Ty = IntegerType::get(SI.getContext(), NewWidth);
|
IntegerType *Ty = IntegerType::get(SI.getContext(), NewWidth);
|
||||||
|
|
|
@ -197,7 +197,7 @@ static bool canSplitCallSite(CallSite CS, TargetTransformInfo &TTI) {
|
||||||
isa<IndirectBrInst>(Preds[1]->getTerminator()))
|
isa<IndirectBrInst>(Preds[1]->getTerminator()))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// BasicBlock::canSplitPredecessors is more agressive, so checking for
|
// BasicBlock::canSplitPredecessors is more aggressive, so checking for
|
||||||
// BasicBlock::isEHPad as well.
|
// BasicBlock::isEHPad as well.
|
||||||
if (!CallSiteBB->canSplitPredecessors() || CallSiteBB->isEHPad())
|
if (!CallSiteBB->canSplitPredecessors() || CallSiteBB->isEHPad())
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue