[X86] Use default attributes for intrinsics
authorNikita Popov <npopov@redhat.com>
Fri, 28 Oct 2022 10:30:28 +0000 (12:30 +0200)
committerNikita Popov <npopov@redhat.com>
Mon, 31 Oct 2022 08:11:54 +0000 (09:11 +0100)
commitd41ecfab92190f0cd805536a0c16da9ff5a5edb7
treee420c946a31b462c850cce5ae75d2ed3f5a9c720
parent69b9e03572d7888007dca42ee6af5325779cfcc2
[X86] Use default attributes for intrinsics

This adds the default attributes (nocallback, nosync, nofree,
willreturn) to some X86 intrinsics. This will be needed to avoid
optimization regressions in the future (once we remove the
readonly -> willreturn implication for intrinsics).

Due to the number of intrinsics, this patch focuses just on the
IntrNoMem intrinsics up to the AVX2 section.

Differential Revision: https://reviews.llvm.org/D136939
llvm/include/llvm/IR/IntrinsicsX86.td
llvm/test/Bitcode/ptest-new.ll
llvm/test/Bitcode/ptest-old.ll
llvm/test/Transforms/RewriteStatepointsForGC/X86/intrinsic-attributes.ll