1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00
llvm-mirror/lib/Transforms/IPO
Chris Lattner 363e78c357 If a function always returns a constant, replace all calls sites with that
constant value.  This makes the return value dead and allows for
simplification in the caller.

This implements IPConstantProp/return-constant.ll

This triggers several dozen times throughout SPEC.

llvm-svn: 17730
2004-11-14 06:10:11 +00:00
..
ArgumentPromotion.cpp Remove debugging code 2004-11-13 23:32:53 +00:00
ConstantMerge.cpp
DeadArgumentElimination.cpp
DeadTypeElimination.cpp
ExtractFunction.cpp
FunctionResolution.cpp
GlobalDCE.cpp
GlobalOpt.cpp
Inliner.cpp
Inliner.h
InlineSimple.cpp
Internalize.cpp
IPConstantPropagation.cpp If a function always returns a constant, replace all calls sites with that 2004-11-14 06:10:11 +00:00
LoopExtractor.cpp
LowerSetJmp.cpp
Makefile
PruneEH.cpp
RaiseAllocations.cpp