commit | 81266c5c9358d71331886a98e750ac9409cc640c | [log] [tgz] |
---|---|---|
author | Nick Lewycky <nicholas@mxc.ca> | Fri Feb 17 06:59:21 2012 +0000 |
committer | Nick Lewycky <nicholas@mxc.ca> | Fri Feb 17 06:59:21 2012 +0000 |
tree | 70d61056257c6a311e8353773fef542a13adf21f | |
parent | 38bdc5762f58b64d652864d154bf1b4dffb5ed39 [diff] |
Add support for invariant.start inside the static constructor evaluator. This is useful to represent a variable that is const in the source but can't be constant in the IR because of a non-trivial constructor. If globalopt evaluates the constructor, and there was an invariant.start with no matching invariant.end possible, it will mark the global constant afterwards. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150794 91177308-0d34-0410-b5e6-96231b3b80d8