Skip to content

Commit 18a3c7a

Browse files
[AMDGPU] Use llvm::none_of (NFC)
1 parent 873a7bb commit 18a3c7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/AMDGPUImageIntrinsicOptimizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ static bool imageIntrinsicOptimizerImpl(Function &F, const TargetMachine *TM) {
293293
Module *M = F.getParent();
294294

295295
// Early test to determine if the intrinsics are used.
296-
if (std::none_of(M->begin(), M->end(), [](Function &F) {
296+
if (llvm::none_of(*M, [](Function &F) {
297297
return !F.users().empty() &&
298298
(F.getIntrinsicID() == Intrinsic::amdgcn_image_load_2dmsaa ||
299299
F.getIntrinsicID() == Intrinsic::amdgcn_image_load_2darraymsaa);

0 commit comments

Comments
 (0)