mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-23 05:52:40 +00:00
When doing "opt -O2" verify the bitcode like is done for
"opt -std-compile-opts". llvm-svn: 146036
This commit is contained in:
parent
6b3cc1405f
commit
b5e4020ddb
@ -407,6 +407,8 @@ static inline void addPass(PassManagerBase &PM, Pass *P) {
|
||||
/// OptLevel - Optimization Level
|
||||
static void AddOptimizationPasses(PassManagerBase &MPM,FunctionPassManager &FPM,
|
||||
unsigned OptLevel) {
|
||||
FPM.add(createVerifierPass()); // Verify that input is correct
|
||||
|
||||
PassManagerBuilder Builder;
|
||||
Builder.OptLevel = OptLevel;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user