diff options
author | Nikita Popov <npopov@redhat.com> | 2022-11-07 17:22:14 +0100 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2022-12-09 10:41:28 +0100 |
commit | ce51cae7947e9e30320ac02e48ea954152309f6d (patch) | |
tree | 1e36fcef758ecfbc0be55b8c54f42d2c65868b10 /llvm/lib/Transforms/Utils/Local.cpp | |
parent | 359c064da762824fa8cfffca645e8996ddb85d53 (diff) | |
download | llvm-ce51cae7947e9e30320ac02e48ea954152309f6d.zip llvm-ce51cae7947e9e30320ac02e48ea954152309f6d.tar.gz llvm-ce51cae7947e9e30320ac02e48ea954152309f6d.tar.bz2 |
[PtrAuth] Use default attributes for some ptrauth intrinsics
This uses the default intrinsic attributes (nofree, nosync,
nocallback, willreturn) for a subset of the ptrauth intrinsics.
Notably, this does not use them for auth and resign, because these
intrinsics are specified to trap and as such are not willreturn.
As far as I understood, the remaining intrinsics may not trap
(or can only trap in cases where behavior is undefined).
Differential Revision: https://reviews.llvm.org/D137557
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/Local.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp index e022a6f..af75fe1 100644 --- a/llvm/lib/Transforms/Utils/Local.cpp +++ b/llvm/lib/Transforms/Utils/Local.cpp @@ -456,7 +456,6 @@ bool llvm::wouldInstructionBeTriviallyDead(Instruction *I, case Intrinsic::wasm_trunc_unsigned: case Intrinsic::ptrauth_auth: case Intrinsic::ptrauth_resign: - case Intrinsic::ptrauth_sign: return true; default: return false; |