[InstCombine] Combine ptrauth sign/resign + auth/resign intrinsics.
authorAhmed Bougacha <ahmed@bougacha.org>
Mon, 24 Oct 2022 15:02:11 +0000 (08:02 -0700)
committerAhmed Bougacha <ahmed@bougacha.org>
Mon, 24 Oct 2022 15:03:14 +0000 (08:03 -0700)
commitbddd9b6b91ae4f042d12b083f1ab4e42f9f910b3
treeeaeae3ab68ca2f114cda58ab8fd5ed980b030345
parent715301056ee0b12d01463ea32ff0f006392f2d12
[InstCombine] Combine ptrauth sign/resign + auth/resign intrinsics.

(sign|resign) + (auth|resign) can be folded by omitting the middle
sign+auth component if the key and discriminator match.

Differential Revision: https://reviews.llvm.org/D132383
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
llvm/test/Transforms/InstCombine/ptrauth-intrinsics.ll [new file with mode: 0644]