mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 13:11:39 +01:00
It is possible that all functions in one module are not being
optimized for size. Set OptForSize for each function separately. llvm-svn: 57182
This commit is contained in:
parent
8b33abdd5b
commit
07a9ce22e4
@ -642,11 +642,8 @@ void X86DAGToDAGISel::PreprocessForFPConvert() {
|
||||
/// when it has created a SelectionDAG for us to codegen.
|
||||
void X86DAGToDAGISel::InstructionSelect() {
|
||||
CurBB = BB; // BB can change as result of isel.
|
||||
if (!OptForSize) {
|
||||
const Function *F = CurDAG->getMachineFunction().getFunction();
|
||||
OptForSize = !F->isDeclaration() &&
|
||||
F->hasFnAttr(Attribute::OptimizeForSize);
|
||||
}
|
||||
const Function *F = CurDAG->getMachineFunction().getFunction();
|
||||
OptForSize = F->hasFnAttr(Attribute::OptimizeForSize);
|
||||
|
||||
DEBUG(BB->dump());
|
||||
if (!Fast)
|
||||
|
Loading…
x
Reference in New Issue
Block a user