mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-17 20:29:31 +00:00
It is possible that all functions in one module are not being
optimized for size. Set OptForSize for each function separately. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57182 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4daa9071ed
commit
e76225a4c1
@ -642,11 +642,8 @@ void X86DAGToDAGISel::PreprocessForFPConvert() {
|
|||||||
/// when it has created a SelectionDAG for us to codegen.
|
/// when it has created a SelectionDAG for us to codegen.
|
||||||
void X86DAGToDAGISel::InstructionSelect() {
|
void X86DAGToDAGISel::InstructionSelect() {
|
||||||
CurBB = BB; // BB can change as result of isel.
|
CurBB = BB; // BB can change as result of isel.
|
||||||
if (!OptForSize) {
|
const Function *F = CurDAG->getMachineFunction().getFunction();
|
||||||
const Function *F = CurDAG->getMachineFunction().getFunction();
|
OptForSize = F->hasFnAttr(Attribute::OptimizeForSize);
|
||||||
OptForSize = !F->isDeclaration() &&
|
|
||||||
F->hasFnAttr(Attribute::OptimizeForSize);
|
|
||||||
}
|
|
||||||
|
|
||||||
DEBUG(BB->dump());
|
DEBUG(BB->dump());
|
||||||
if (!Fast)
|
if (!Fast)
|
||||||
|
Loading…
Reference in New Issue
Block a user