[all-commits] [llvm/llvm-project] b1bfe2: [VPlan] Remove unneeded getNumUsers calls in repla...
Florian Hahn via All-commits
all-commits at lists.llvm.org
Fri Dec 15 05:43:35 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b1bfe221e6cc36c2b4bdf80466aaf8935557e45f
https://github.com/llvm/llvm-project/commit/b1bfe221e6cc36c2b4bdf80466aaf8935557e45f
Author: Florian Hahn <flo at fhahn.com>
Date: 2023-12-15 (Fri, 15 Dec 2023)
Changed paths:
M llvm/lib/Transforms/Vectorize/VPlan.cpp
Log Message:
-----------
[VPlan] Remove unneeded getNumUsers calls in replaceAllUsesWith (NFC).
As suggested post-commit for a00227197, replace unnecessary getNumUsers
calls by boolean variable to indicate if users changed. Note that this
also requires an early exit to detect the case where a value is replaced
by itself.
More information about the All-commits
mailing list