Skip to content
Commit af555adc authored by Chris Lattner's avatar Chris Lattner
Browse files

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
parent 37d2cd7c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment