remove condition. Don't use gcc 4.7 for tests.
This commit is contained in:
4
opt.cpp
4
opt.cpp
@@ -550,11 +550,11 @@ Optimize(llvm::Module *module, int optLevel) {
|
|||||||
optPM.add(llvm::createGlobalOptimizerPass());
|
optPM.add(llvm::createGlobalOptimizerPass());
|
||||||
optPM.add(llvm::createReassociatePass());
|
optPM.add(llvm::createReassociatePass());
|
||||||
optPM.add(llvm::createIPConstantPropagationPass());
|
optPM.add(llvm::createIPConstantPropagationPass());
|
||||||
if (g->target->getISA() != Target::GENERIC) {
|
// if (g->target->getISA() != Target::GENERIC) {
|
||||||
// Just use the builtins for generic targets.
|
// Just use the builtins for generic targets.
|
||||||
|
|
||||||
optPM.add(CreateReplaceStdlibShiftPass(),229);
|
optPM.add(CreateReplaceStdlibShiftPass(),229);
|
||||||
}
|
// }
|
||||||
optPM.add(llvm::createDeadArgEliminationPass(),230);
|
optPM.add(llvm::createDeadArgEliminationPass(),230);
|
||||||
optPM.add(llvm::createInstructionCombiningPass());
|
optPM.add(llvm::createInstructionCombiningPass());
|
||||||
optPM.add(llvm::createCFGSimplificationPass());
|
optPM.add(llvm::createCFGSimplificationPass());
|
||||||
|
|||||||
Reference in New Issue
Block a user