mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
bcf1e6754c
The limitation of the current pass that it skips initializer-less GV's seems arbitrary, in all the reduced cases i (personally) looked at, the globals weren't needed, yet they were kept. So let's do two things: 1. allow reducing initializer-less globals 2. before reducing globals, reduce their initializers, much like we do function bodies
33 lines
655 B
CMake
33 lines
655 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
AllTargetsAsmParsers
|
|
AllTargetsCodeGens
|
|
AllTargetsDescs
|
|
AllTargetsInfos
|
|
Core
|
|
IRReader
|
|
Support
|
|
Target
|
|
TransformUtils
|
|
)
|
|
|
|
add_llvm_tool(llvm-reduce
|
|
TestRunner.cpp
|
|
deltas/Delta.cpp
|
|
deltas/ReduceAliases.cpp
|
|
deltas/ReduceArguments.cpp
|
|
deltas/ReduceAttributes.cpp
|
|
deltas/ReduceBasicBlocks.cpp
|
|
deltas/ReduceFunctionBodies.cpp
|
|
deltas/ReduceFunctions.cpp
|
|
deltas/ReduceGlobalVarInitializers.cpp
|
|
deltas/ReduceGlobalVars.cpp
|
|
deltas/ReduceInstructions.cpp
|
|
deltas/ReduceMetadata.cpp
|
|
deltas/ReduceOperandBundles.cpp
|
|
deltas/ReduceSpecialGlobals.cpp
|
|
llvm-reduce.cpp
|
|
|
|
DEPENDS
|
|
intrinsics_gen
|
|
)
|