[llvm] r340863 - [llvm-mca] use llvm::any_of instead of std::any_of. NFC
Andrea Di Biagio via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 28 11:49:05 PDT 2018
Author: adibiagio
Date: Tue Aug 28 11:49:04 2018
New Revision: 340863
URL: http://llvm.org/viewvc/llvm-project?rev=340863&view=rev
Log:
[llvm-mca] use llvm::any_of instead of std::any_of. NFC
Modified:
llvm/trunk/tools/llvm-mca/include/Instruction.h
Modified: llvm/trunk/tools/llvm-mca/include/Instruction.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/include/Instruction.h?rev=340863&r1=340862&r2=340863&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/include/Instruction.h (original)
+++ llvm/trunk/tools/llvm-mca/include/Instruction.h Tue Aug 28 11:49:04 2018
@@ -16,6 +16,7 @@
#ifndef LLVM_TOOLS_LLVM_MCA_INSTRUCTION_H
#define LLVM_TOOLS_LLVM_MCA_INSTRUCTION_H
+#include "llvm/ADT/STLExtras.h"
#include "llvm/Support/MathExtras.h"
#ifndef NDEBUG
@@ -339,7 +340,7 @@ public:
int getCyclesLeft() const { return CyclesLeft; }
bool hasDependentUsers() const {
- return std::any_of(Defs.begin(), Defs.end(), [](const UniqueDef &Def) {
+ return llvm::any_of(Defs, [](const UniqueDef &Def) {
return Def->getNumUsers() > 0;
});
}
More information about the llvm-commits
mailing list