[PATCH] D128217: [ValueTracking] Teach isKnownNonZero that a vscale is never 0.
    Paul Walker via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Jun 20 11:43:32 PDT 2022
    
    
  
paulwalker-arm accepted this revision.
paulwalker-arm added inline comments.
This revision is now accepted and ready to land.
================
Comment at: llvm/lib/Analysis/ValueTracking.cpp:2701
       return true;
+  } else if (const auto *II = dyn_cast<IntrinsicInst>(V)) {
+    if (II->getIntrinsicID() == Intrinsic::vscale)
----------------
The existing coding style suggests this should be
```
}
// Intrinsic
else if (...
```
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D128217/new/
https://reviews.llvm.org/D128217
    
    
More information about the llvm-commits
mailing list