[llvm] ValueTracking: introduce llvm::isLanewiseOperation (PR #112011)
    Nikita Popov via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Sat Oct 12 06:33:39 PDT 2024
    
    
  
================
@@ -6947,6 +6947,81 @@ bool llvm::onlyUsedByLifetimeMarkersOrDroppableInsts(const Value *V) {
       V, /* AllowLifetime */ true, /* AllowDroppable */ true);
 }
 
+bool llvm::isLanewiseOperation(const Instruction *I) {
+  if (auto *II = dyn_cast<IntrinsicInst>(I)) {
----------------
nikic wrote:
Please do not extend the list of intrinsics as part of this change. We'll probably want to deduplicate this with isTriviallyVectorizable.
https://github.com/llvm/llvm-project/pull/112011
    
    
More information about the llvm-commits
mailing list