[llvm] [clang-tools-extra] [clang] [VPlan] Update VPInst::onlyFirstLaneUsed to check users. (PR #80269)

Florian Hahn via cfe-commits cfe-commits at lists.llvm.org
Sat Feb 3 08:06:26 PST 2024


================
@@ -1397,9 +1397,9 @@ void VPSlotTracker::assignSlots(const VPBasicBlock *VPBB) {
       assignSlot(Def);
 }
 
-bool vputils::onlyFirstLaneUsed(VPValue *Def) {
+bool vputils::onlyFirstLaneUsed(const VPValue *Def) {
   return all_of(Def->users(),
-                [Def](VPUser *U) { return U->onlyFirstLaneUsed(Def); });
+                [Def](const VPUser *U) { return U->onlyFirstLaneUsed(Def); });
----------------
fhahn wrote:

Split off to 693647902076034e7c81f380d1b937a65aef8ae6, thanks!

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


More information about the cfe-commits mailing list