commit | 01b97dd01eec1197d79fceb7229f5ec233994de3 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Mon Nov 23 16:22:21 2009 +0000 |
committer | Dan Gohman <gohman@apple.com> | Mon Nov 23 16:22:21 2009 +0000 |
tree | 88196a1f71041f2236951d786a30477f28c9262c | |
parent | 8f3817f505029e97d28c54548069d5bbaa9d5527 [diff] |
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89659 91177308-0d34-0410-b5e6-96231b3b80d8