[PATCH] D95288: [ValueTracking] Don't assume readonly function will return
    Sjoerd Meijer via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Jan 25 02:38:02 PST 2021
    
    
  
SjoerdMeijer added inline comments.
================
Comment at: llvm/lib/Analysis/ValueTracking.cpp:5046
+    // annotated.
+    return isa<IntrinsicInst>(CB) && CB->onlyReadsMemory();
   }
----------------
Drive by comment: if this reads volatile memory, it is not side-effect free? If this is a check for "side-effect free intrinsics", does this check cover that?
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D95288/new/
https://reviews.llvm.org/D95288
    
    
More information about the llvm-commits
mailing list