[FuncAttrs] Extract code for adding a location access (NFC)
authorNikita Popov <npopov@redhat.com>
Wed, 19 Oct 2022 14:55:24 +0000 (16:55 +0200)
committerNikita Popov <npopov@redhat.com>
Thu, 20 Oct 2022 10:01:27 +0000 (12:01 +0200)
commitbed31153b7354b27e7b5cc2bf29647c4ee8418e9
tree91dec1a984adee710adf7a77a07e97bc62b81979
parentf2fe289374b03d7a11559fa5ea2c6a0c225d0aec
[FuncAttrs] Extract code for adding a location access (NFC)

This code is the same for accesses from call arguments and for
accesses from other (single-location) instructions. Extract i
into a common function.
llvm/lib/Transforms/IPO/FunctionAttrs.cpp