Add a nothrow flag to the SIL apply_inst.

If the compiler can prove that a throwing function actually does not throw it can
replace a try_apply with an "apply [nothrow]". Such an apply_inst calls a function
with an error result but does not have the overhead of checking for the error case.

Currently this flag is not set, yet.



Swift SVN r31151
This commit is contained in:
Erik Eckstein
2015-08-12 00:18:36 +00:00
parent aee63ec5d3
commit 388bc31ba7
27 changed files with 139 additions and 49 deletions

View File

@@ -51,7 +51,7 @@ const uint16_t VERSION_MAJOR = 0;
/// To ensure that two separate changes don't silently get merged into one
/// in source control, you should also update the comment to briefly
/// describe what change you made.
const uint16_t VERSION_MINOR = 209; // Last change: add kind to dealloc_ref
const uint16_t VERSION_MINOR = 210; // Last change: nothrow flag in apply_inst
using DeclID = Fixnum<31>;
using DeclIDField = BCFixed<31>;