mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-29 15:37:46 +00:00
When doing "opt -O2" verify the bitcode like is done for
"opt -std-compile-opts". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146036 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d802326335
commit
a3e585d4c2
@ -407,6 +407,8 @@ static inline void addPass(PassManagerBase &PM, Pass *P) {
|
|||||||
/// OptLevel - Optimization Level
|
/// OptLevel - Optimization Level
|
||||||
static void AddOptimizationPasses(PassManagerBase &MPM,FunctionPassManager &FPM,
|
static void AddOptimizationPasses(PassManagerBase &MPM,FunctionPassManager &FPM,
|
||||||
unsigned OptLevel) {
|
unsigned OptLevel) {
|
||||||
|
FPM.add(createVerifierPass()); // Verify that input is correct
|
||||||
|
|
||||||
PassManagerBuilder Builder;
|
PassManagerBuilder Builder;
|
||||||
Builder.OptLevel = OptLevel;
|
Builder.OptLevel = OptLevel;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user