mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
Run GlobalDCE before deadtypeelim so that we do not retain types for global
variables that are obviously dead. The most common case is %FILE git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3370 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
22de210b60
commit
0e4ca08843
@ -66,6 +66,7 @@ void AddConfiguredTransformationPasses(PassManager &PM) {
|
||||
if (Verify) PM.add(createVerifierPass());
|
||||
|
||||
addPass(PM, createFunctionResolvingPass()); // Resolve (...) functions
|
||||
addPass(PM, createGlobalDCEPass()); // Kill unused uinit g-vars
|
||||
addPass(PM, createDeadTypeEliminationPass()); // Eliminate dead types
|
||||
addPass(PM, createConstantMergePass()); // Merge dup global constants
|
||||
addPass(PM, createDeadInstEliminationPass()); // Remove Dead code/vars
|
||||
|
Loading…
Reference in New Issue
Block a user