[llvm] [InferAddressSpaces] Check volatile support in the destination AS (PR #224702)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 18 11:56:37 PDT 2026


================
@@ -168,19 +168,14 @@ class NVPTXTTIImpl final : public BasicTTIImplBase<NVPTXTTIImpl> {
                              TTI::PeelingPreferences &PP) const override;
 
   bool hasVolatileVariant(Instruction *I, unsigned AddrSpace) const override {
----------------
arsenm wrote:

I still think the existence of this TTI hook is dodgy and we shouldn't touch volatile operations, regardless of target preference 

https://github.com/llvm/llvm-project/pull/224702


More information about the llvm-commits mailing list