diff options
author | Florian Hahn <flo@fhahn.com> | 2020-08-29 20:21:19 +0100 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2020-08-29 20:35:14 +0100 |
commit | 5067f4b6261c07d5df94bf18407235d83ce33861 (patch) | |
tree | 749b78eeaad7d728f1a750c084e06c36b0ea3265 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | a400a617217db7da1957cf1e102062aff98716e8 (diff) | |
download | llvm-5067f4b6261c07d5df94bf18407235d83ce33861.zip llvm-5067f4b6261c07d5df94bf18407235d83ce33861.tar.gz llvm-5067f4b6261c07d5df94bf18407235d83ce33861.tar.bz2 |
[LV] Check opt-for-size before expanding runtime checks.
Move bail out when optimizing for size before runtime check generation.
In that case, we do not use the result of the expansion, the expanded
instruction will be dead and cleaned up later.
By doing the check before expanding the runtime-checks, we can save a
bit of unnecessary work.
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions