Skip to content
Commit 580b80d6 authored by Dan Gohman's avatar Dan Gohman
Browse files

Make ConstantFoldConstantExpression recursively visit the entire

ConstantExpr, not just the top-level operator. This allows it to
fold many more constants.

Also, make GlobalOpt call ConstantFoldConstantExpression on
GlobalVariable initializers.

llvm-svn: 89659
parent 1f522d98
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