diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-11-01 13:42:39 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-11-01 22:18:07 +0100 |
commit | cc91554ebb66e8c9a4b8c67ca2f1343eaac10cf6 (patch) | |
tree | a84bb57d98f7dd3c5d8734f5d673682f1c9746ea /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 090e8472ae7e7c606ecd2bbb19bbf5ce1dc2b39b (diff) | |
download | llvm-cc91554ebb66e8c9a4b8c67ca2f1343eaac10cf6.zip llvm-cc91554ebb66e8c9a4b8c67ca2f1343eaac10cf6.tar.gz llvm-cc91554ebb66e8c9a4b8c67ca2f1343eaac10cf6.tar.bz2 |
[SCEV] Delay strengthening of nowrap flags
Strengthening nowrap flags is relatively expensive. Make sure we
only do it if we're actually going to use the flags -- we don't
use them for many recursive invocations. Additionally, if we're
reusing an existing SCEV node, there's no point in trying to
strengthen the flags if we don't have any new baseline facts.
This change falls slightly short of being NFC, because the way
flags during add+addrec / mul+addrec folding are handled may be
more precise (as less operands are included in the calculation).
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions