diff options
| author | Erik Desjardins <erikdesjardins@users.noreply.github.com> | 2022-02-21 14:47:56 -0500 |
|---|---|---|
| committer | Erik Desjardins <erikdesjardins@users.noreply.github.com> | 2022-02-28 00:02:11 -0500 |
| commit | dce14cfacc232e80dbed68430183085fd39dea02 (patch) | |
| tree | 483be9d1d51cf400032527314b0c6bea8d2b06b9 /compiler/rustc_codegen_gcc | |
| parent | b07d59f794d8fffb628f82c9c8156f5457de5e49 (diff) | |
| download | rust-dce14cfacc232e80dbed68430183085fd39dea02.tar.gz rust-dce14cfacc232e80dbed68430183085fd39dea02.zip | |
Remove LLVM attribute removal
This was necessary before, because `declare_raw_fn` would always apply the default optimization attributes to every declared function, and then `attributes::from_fn_attrs` would have to remove the default attributes in the case of, e.g. `#[optimize(speed)]` in a `-Os` build. However, every relevant callsite of `declare_raw_fn` (i.e. where we actually generate code for the function, and not e.g. a call to an intrinsic, where optimization attributes don't [?] matter) calls `from_fn_attrs`, so we can simply remove the attribute setting from `declare_raw_fn`, and rely on `from_fn_attrs` to apply the correct attributes all at once.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
