[clang] [llvm] [clang-tools-extra] [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); });
 }
 
 bool vputils::onlyFirstPartUsed(VPValue *Def) {
----------------
fhahn wrote:

Done in 3444240540b0b36902dc8b9b11339b8969f7bca9, thanks!

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


More information about the cfe-commits mailing list