diff options
| author | Jingyue Wu <jingyue@google.com> | 2015-02-01 02:34:41 +0000 |
|---|---|---|
| committer | Jingyue Wu <jingyue@google.com> | 2015-02-01 02:34:41 +0000 |
| commit | 6c26bb63fe5174731ed88c67b054dd0d12984143 (patch) | |
| tree | f966541dbc2383f33d80cd3588f4d81e843495e6 /llvm/lib/Transforms | |
| parent | 6e091c8eabfb42d2d43b789633ddb37c98ea80a6 (diff) | |
| download | bcm5719-llvm-6c26bb63fe5174731ed88c67b054dd0d12984143.tar.gz bcm5719-llvm-6c26bb63fe5174731ed88c67b054dd0d12984143.zip | |
[SeparateConstOffsetFromGEP] skip optnone functions
llvm-svn: 227705
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp b/llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp index 47ffd23fa43..caace80a2d6 100644 --- a/llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp +++ b/llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp @@ -998,6 +998,9 @@ bool SeparateConstOffsetFromGEP::splitGEP(GetElementPtrInst *GEP) { } bool SeparateConstOffsetFromGEP::runOnFunction(Function &F) { + if (skipOptnoneFunction(F)) + return false; + if (DisableSeparateConstOffsetFromGEP) return false; |

