[Attributor] Do not delete volatile stores to null/undef
authorJohannes Doerfert <johannes@jdoerfert.de>
Wed, 11 Aug 2021 14:48:46 +0000 (09:48 -0500)
committerJohannes Doerfert <johannes@jdoerfert.de>
Thu, 12 Aug 2021 15:39:52 +0000 (10:39 -0500)
commita420f80bf19da52dd22640bcc8e0cfa34e8ceae7
treea7c129baa5877e0378db93c91c26ff3991371d62
parentae9a346ef8620851b54682b4b6738788af709578
[Attributor] Do not delete volatile stores to null/undef

See D106309.

Differential Revision: https://reviews.llvm.org/D107906
llvm/lib/Transforms/IPO/AttributorAttributes.cpp
llvm/test/CodeGen/AMDGPU/annotate-kernel-features-hsa-call.ll
llvm/test/Transforms/Attributor/undefined_behavior.ll