add_llvm_library(LLVMScalarOpts ADCE.cpp CodeGenPrepare.cpp ConstantProp.cpp CorrelatedValuePropagation.cpp DCE.cpp DeadStoreElimination.cpp EarlyCSE.cpp GlobalMerge.cpp GVN.cpp IndVarSimplify.cpp JumpThreading.cpp LICM.cpp LoopDeletion.cpp LoopIdiomRecognize.cpp LoopInstSimplify.cpp LoopRotation.cpp LoopStrengthReduce.cpp LoopUnrollPass.cpp LoopUnswitch.cpp LowerAtomic.cpp MemCpyOptimizer.cpp PartiallyInlineLibCalls.cpp Reassociate.cpp Reg2Mem.cpp SampleProfile.cpp SCCP.cpp SROA.cpp Scalar.cpp ScalarReplAggregates.cpp SimplifyCFGPass.cpp FlattenCFGPass.cpp Sink.cpp StructurizeCFG.cpp TailRecursionElimination.cpp ) add_dependencies(LLVMScalarOpts intrinsics_gen)