[llvm] 18a3c7a - [AMDGPU] Use llvm::none_of (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 24 00:27:48 PST 2024
Author: Kazu Hirata
Date: 2024-01-24T00:27:37-08:00
New Revision: 18a3c7a01ed983d19e47a03e664200ffff53689c
URL: https://github.com/llvm/llvm-project/commit/18a3c7a01ed983d19e47a03e664200ffff53689c
DIFF: https://github.com/llvm/llvm-project/commit/18a3c7a01ed983d19e47a03e664200ffff53689c.diff
LOG: [AMDGPU] Use llvm::none_of (NFC)
Added:
Modified:
llvm/lib/Target/AMDGPU/AMDGPUImageIntrinsicOptimizer.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUImageIntrinsicOptimizer.cpp b/llvm/lib/Target/AMDGPU/AMDGPUImageIntrinsicOptimizer.cpp
index e5fbcca1e7d169..88429e3f0e2181 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUImageIntrinsicOptimizer.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUImageIntrinsicOptimizer.cpp
@@ -293,7 +293,7 @@ static bool imageIntrinsicOptimizerImpl(Function &F, const TargetMachine *TM) {
Module *M = F.getParent();
// Early test to determine if the intrinsics are used.
- if (std::none_of(M->begin(), M->end(), [](Function &F) {
+ if (llvm::none_of(*M, [](Function &F) {
return !F.users().empty() &&
(F.getIntrinsicID() == Intrinsic::amdgcn_image_load_2dmsaa ||
F.getIntrinsicID() == Intrinsic::amdgcn_image_load_2darraymsaa);
More information about the llvm-commits
mailing list