diff options
author | Kirill Naumov <knaumov@azul.com> | 2020-06-02 19:22:41 +0000 |
---|---|---|
committer | Kirill Naumov <knaumov@azul.com> | 2020-06-17 13:40:19 +0000 |
commit | 34fba68d80051e3c53e7843157c036f6d511ae03 (patch) | |
tree | b5990859cfa6b2044d64a7cdc6832f291437a26d /llvm/lib/Support/CommandLine.cpp | |
parent | 52b0db22f8cfb594c32389224570681d2d2c2f21 (diff) | |
download | llvm-34fba68d80051e3c53e7843157c036f6d511ae03.zip llvm-34fba68d80051e3c53e7843157c036f6d511ae03.tar.gz llvm-34fba68d80051e3c53e7843157c036f6d511ae03.tar.bz2 |
[InlineCost] GetElementPtr with constant operands
If the GEP instruction contanins only constants as its arguments,
then it should be recognized as a constant. For now, there was
also added a flag to turn off this simplification if it causes
any regressions ("disable-gep-const-evaluation") which is off
by default. Once I gather needed data of the effectiveness of
this simplification, the flag will be deleted.
Reviewers: apilipenko, davidxl, mtrofin
Reviewed By: mtrofin
Differential Revision: https://reviews.llvm.org/D81026
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions