Skip to content

Commit 145f893

Browse files
SC llvm teamSC llvm team
authored andcommitted
Merged main:b83b28779ee56236aaf8827398f889334abbd28d into amd-gfx:6670c73ea871
Local branch amd-gfx 6670c73 [AMDGPU][Waterfall] Put exec save in the loop header Remote branch main b83b287 [RISCV] Make Zhinx and Zvfh imply Zhinxmin and Zvfhmin respectively (llvm#75735)
2 parents 6670c73 + b83b287 commit 145f893

File tree

57 files changed

+1044
-178
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+1044
-178
lines changed

clang/lib/CodeGen/CGBuiltin.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,19 +232,19 @@ static Value *MakeBinaryAtomicValue(
232232

233233
static Value *EmitNontemporalStore(CodeGenFunction &CGF, const CallExpr *E) {
234234
Value *Val = CGF.EmitScalarExpr(E->getArg(0));
235-
Value *Address = CGF.EmitScalarExpr(E->getArg(1));
235+
Address Addr = CGF.EmitPointerWithAlignment(E->getArg(1));
236236

237237
Val = CGF.EmitToMemory(Val, E->getArg(0)->getType());
238-
LValue LV = CGF.MakeNaturalAlignAddrLValue(Address, E->getArg(0)->getType());
238+
LValue LV = CGF.MakeAddrLValue(Addr, E->getArg(0)->getType());
239239
LV.setNontemporal(true);
240240
CGF.EmitStoreOfScalar(Val, LV, false);
241241
return nullptr;
242242
}
243243

244244
static Value *EmitNontemporalLoad(CodeGenFunction &CGF, const CallExpr *E) {
245-
Value *Address = CGF.EmitScalarExpr(E->getArg(0));
245+
Address Addr = CGF.EmitPointerWithAlignment(E->getArg(0));
246246

247-
LValue LV = CGF.MakeNaturalAlignAddrLValue(Address, E->getType());
247+
LValue LV = CGF.MakeAddrLValue(Addr, E->getType());
248248
LV.setNontemporal(true);
249249
return CGF.EmitLoadOfScalar(LV, E->getExprLoc());
250250
}

clang/lib/Format/Format.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,6 @@ static void expandPresetsBraceWrapping(FormatStyle &Expanded) {
13151315
Expanded.BraceWrapping.AfterStruct = true;
13161316
Expanded.BraceWrapping.AfterUnion = true;
13171317
Expanded.BraceWrapping.AfterExternBlock = true;
1318-
Expanded.IndentExternBlock = FormatStyle::IEBS_AfterExternBlock;
13191318
Expanded.BraceWrapping.SplitEmptyFunction = true;
13201319
Expanded.BraceWrapping.SplitEmptyRecord = false;
13211320
break;
@@ -1335,7 +1334,6 @@ static void expandPresetsBraceWrapping(FormatStyle &Expanded) {
13351334
Expanded.BraceWrapping.AfterStruct = true;
13361335
Expanded.BraceWrapping.AfterUnion = true;
13371336
Expanded.BraceWrapping.AfterExternBlock = true;
1338-
Expanded.IndentExternBlock = FormatStyle::IEBS_AfterExternBlock;
13391337
Expanded.BraceWrapping.BeforeCatch = true;
13401338
Expanded.BraceWrapping.BeforeElse = true;
13411339
Expanded.BraceWrapping.BeforeLambdaBody = true;
@@ -1350,7 +1348,6 @@ static void expandPresetsBraceWrapping(FormatStyle &Expanded) {
13501348
Expanded.BraceWrapping.AfterObjCDeclaration = true;
13511349
Expanded.BraceWrapping.AfterStruct = true;
13521350
Expanded.BraceWrapping.AfterExternBlock = true;
1353-
Expanded.IndentExternBlock = FormatStyle::IEBS_AfterExternBlock;
13541351
Expanded.BraceWrapping.BeforeCatch = true;
13551352
Expanded.BraceWrapping.BeforeElse = true;
13561353
Expanded.BraceWrapping.BeforeLambdaBody = true;
@@ -1375,7 +1372,6 @@ static void expandPresetsBraceWrapping(FormatStyle &Expanded) {
13751372
/*SplitEmptyFunction=*/true,
13761373
/*SplitEmptyRecord=*/true,
13771374
/*SplitEmptyNamespace=*/true};
1378-
Expanded.IndentExternBlock = FormatStyle::IEBS_AfterExternBlock;
13791375
break;
13801376
case FormatStyle::BS_WebKit:
13811377
Expanded.BraceWrapping.AfterFunction = true;
@@ -1909,7 +1905,6 @@ FormatStyle getMicrosoftStyle(FormatStyle::LanguageKind Language) {
19091905
Style.BraceWrapping.AfterObjCDeclaration = true;
19101906
Style.BraceWrapping.AfterStruct = true;
19111907
Style.BraceWrapping.AfterExternBlock = true;
1912-
Style.IndentExternBlock = FormatStyle::IEBS_AfterExternBlock;
19131908
Style.BraceWrapping.BeforeCatch = true;
19141909
Style.BraceWrapping.BeforeElse = true;
19151910
Style.BraceWrapping.BeforeWhile = false;

clang/test/CodeGen/Nontemporal.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,17 @@ void test_all_sizes(void) // CHECK-LABEL: test_all_sizes
4646
vf2 = __builtin_nontemporal_load(&vf1); // CHECK: load <4 x float>{{.*}}align 16, !nontemporal
4747
vc2 = __builtin_nontemporal_load(&vc1); // CHECK: load <8 x i8>{{.*}}align 8, !nontemporal
4848
}
49+
50+
struct S { char c[16]; };
51+
S x;
52+
53+
typedef int v4si __attribute__ ((vector_size(16)));
54+
55+
// CHECK-LABEL: define void @_Z14test_alignmentv()
56+
// CHECK: load <4 x i32>, ptr @x, align 1, !nontemporal
57+
// CHECK: store <4 x i32> %1, ptr @x, align 1, !nontemporal
58+
59+
void test_alignment() {
60+
auto t = __builtin_nontemporal_load((v4si*)x.c);
61+
__builtin_nontemporal_store(t, (v4si*)x.c);
62+
}

clang/unittests/Format/FormatTest.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4571,6 +4571,13 @@ TEST_F(FormatTest, IndentExternBlockStyle) {
45714571
"}",
45724572
Style);
45734573

4574+
Style.BreakBeforeBraces = FormatStyle::BS_Allman;
4575+
verifyFormat("extern \"C\"\n"
4576+
"{\n"
4577+
"int i;\n"
4578+
"}",
4579+
Style);
4580+
45744581
Style.BreakBeforeBraces = FormatStyle::BS_Custom;
45754582
Style.BraceWrapping.AfterExternBlock = true;
45764583
Style.IndentExternBlock = FormatStyle::IEBS_Indent;

compiler-rt/cmake/Modules/AddCompilerRT.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,13 +670,18 @@ macro(add_custom_libcxx name prefix)
670670
get_property(CXX_FLAGS CACHE CMAKE_CXX_FLAGS PROPERTY VALUE)
671671
set(LIBCXX_CXX_FLAGS "${LIBCXX_CXX_FLAGS} ${CXX_FLAGS}")
672672

673+
if(CMAKE_VERBOSE_MAKEFILE)
674+
set(verbose -DCMAKE_VERBOSE_MAKEFILE=ON)
675+
endif()
676+
673677
ExternalProject_Add(${name}
674678
DEPENDS ${name}-clobber ${LIBCXX_DEPS}
675679
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/${name}
676680
SOURCE_DIR ${LLVM_MAIN_SRC_DIR}/../runtimes
677681
BINARY_DIR ${prefix}
678682
CMAKE_ARGS ${CMAKE_PASSTHROUGH_VARIABLES}
679683
${compiler_args}
684+
${verbose}
680685
-DCMAKE_C_FLAGS=${LIBCXX_C_FLAGS}
681686
-DCMAKE_CXX_FLAGS=${LIBCXX_CXX_FLAGS}
682687
-DCMAKE_BUILD_TYPE=Release

lldb/bindings/python/python-typemaps.swig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ AND call SWIG_fail at the same time, because it will result in a double free.
110110
SWIG_fail;
111111
}
112112

113-
if (llvm::StringRef(type_name.get()).startswith("SB")) {
113+
if (llvm::StringRef(type_name.get()).starts_with("SB")) {
114114
std::string error_msg = "Input type is invalid: " + type_name.get();
115115
PyErr_SetString(PyExc_TypeError, error_msg.c_str());
116116
SWIG_fail;

llvm/cmake/modules/LLVMExternalProjectUtils.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,10 @@ function(llvm_ExternalProject_Add name source_dir)
319319
list(APPEND compiler_args -DCMAKE_ASM_COMPILER_TARGET=${ARG_TARGET_TRIPLE})
320320
endif()
321321

322+
if(CMAKE_VERBOSE_MAKEFILE)
323+
set(verbose -DCMAKE_VERBOSE_MAKEFILE=ON)
324+
endif()
325+
322326
ExternalProject_Add(${name}
323327
DEPENDS ${ARG_DEPENDS} llvm-config
324328
${name}-clobber
@@ -330,6 +334,7 @@ function(llvm_ExternalProject_Add name source_dir)
330334
CMAKE_ARGS ${${nameCanon}_CMAKE_ARGS}
331335
--no-warn-unused-cli
332336
${compiler_args}
337+
${verbose}
333338
-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}
334339
${sysroot_arg}
335340
-DLLVM_BINARY_DIR=${PROJECT_BINARY_DIR}

llvm/docs/AliasAnalysis.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ Writing a new ``AliasAnalysis`` Implementation
207207

208208
Writing a new alias analysis implementation for LLVM is quite straight-forward.
209209
There are already several implementations that you can use for examples, and the
210-
following information should help fill in any details. For a examples, take a
210+
following information should help fill in any details. For examples, take a
211211
look at the `various alias analysis implementations`_ included with LLVM.
212212

213213
Different Pass styles

llvm/docs/ConvergentOperations.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ those in the caller.
607607
only if both threads entered the function by executing converged
608608
dynamic instances of the call-site.
609609

610-
This intrinsic can occur at most once in a function, and only in the the entry
610+
This intrinsic can occur at most once in a function, and only in the entry
611611
block of the function. If this intrinsic occurs in a basic block, then it must
612612
precede any other convergent operation in the same basic block.
613613

llvm/docs/JITLink.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ finally transferring linked memory to the executing process.
466466

467467
Calls the ``JITLinkContext``'s ``JITLinkMemoryManager`` to allocate both
468468
working and target memory for the graph. As part of this process the
469-
``JITLinkMemoryManager`` will update the the addresses of all nodes
469+
``JITLinkMemoryManager`` will update the addresses of all nodes
470470
defined in the graph to their assigned target address.
471471

472472
Note: This step only updates the addresses of nodes defined in this graph.

llvm/docs/LangRef.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,7 +1515,7 @@ Currently, only the following parameter attributes are defined:
15151515
over-alignment specification through language attributes).
15161516

15171517
``allocalign``
1518-
The function parameter marked with this attribute is is the alignment in bytes of the
1518+
The function parameter marked with this attribute is the alignment in bytes of the
15191519
newly allocated block returned by this function. The returned value must either have
15201520
the specified alignment or be the null pointer. The return value MAY be more aligned
15211521
than the requested alignment, but not less aligned. Invalid (e.g. non-power-of-2)
@@ -22798,7 +22798,7 @@ Semantics:
2279822798

2279922799
The '``llvm.vp.fcmp``' compares its first two operands according to the
2280022800
condition code given as the third operand. The operands are compared element by
22801-
element on each enabled lane, where the the semantics of the comparison are
22801+
element on each enabled lane, where the semantics of the comparison are
2280222802
defined :ref:`according to the condition code <fcmp_md_cc_sem>`. Masked-off
2280322803
lanes are ``poison``.
2280422804

@@ -22856,7 +22856,7 @@ Semantics:
2285622856

2285722857
The '``llvm.vp.icmp``' compares its first two operands according to the
2285822858
condition code given as the third operand. The operands are compared element by
22859-
element on each enabled lane, where the the semantics of the comparison are
22859+
element on each enabled lane, where the semantics of the comparison are
2286022860
defined :ref:`according to the condition code <icmp_md_cc_sem>`. Masked-off
2286122861
lanes are ``poison``.
2286222862

llvm/docs/NVPTXUsage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ optimization pipeline before dead-code elimination.
329329
The NVPTX TargetMachine knows how to schedule ``NVVMReflect`` at the beginning
330330
of your pass manager; just use the following code when setting up your pass
331331
manager and the PassBuilder will use ``registerPassBuilderCallbacks`` to let
332-
NVPTXTargetMachine::registerPassBuilderCallbacks add the the pass to the
332+
NVPTXTargetMachine::registerPassBuilderCallbacks add the pass to the
333333
pass manager:
334334

335335
.. code-block:: c++

llvm/docs/TableGen/ProgRef.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ The argument values can be specified in two forms:
661661
argument with name ``a`` and ``a1`` will be assigned to the argument with
662662
name ``b``.
663663

664-
Required arguments can alse be specified as named argument.
664+
Required arguments can also be specified as named argument.
665665

666666
Note that the argument can only be specified once regardless of the way (named
667667
or positional) to specify and positional arguments should be put before named

llvm/include/llvm/ADT/StringRef.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,9 @@ namespace llvm {
258258
return Length >= Prefix.Length &&
259259
compareMemory(Data, Prefix.Data, Prefix.Length) == 0;
260260
}
261-
[[nodiscard]] bool startswith(StringRef Prefix) const {
261+
[[nodiscard]] LLVM_DEPRECATED(
262+
"Use starts_with instead",
263+
"starts_with") bool startswith(StringRef Prefix) const {
262264
return starts_with(Prefix);
263265
}
264266

@@ -271,7 +273,9 @@ namespace llvm {
271273
compareMemory(end() - Suffix.Length, Suffix.Data, Suffix.Length) ==
272274
0;
273275
}
274-
[[nodiscard]] bool endswith(StringRef Suffix) const {
276+
[[nodiscard]] LLVM_DEPRECATED(
277+
"Use ends_with instead",
278+
"ends_with") bool endswith(StringRef Suffix) const {
275279
return ends_with(Suffix);
276280
}
277281

llvm/include/llvm/Analysis/AliasAnalysis.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ class LoopInfo;
6464
class PreservedAnalyses;
6565
class TargetLibraryInfo;
6666
class Value;
67-
template <typename> class SmallPtrSetImpl;
6867

6968
/// The possible results of an alias query.
7069
///

llvm/include/llvm/Analysis/AliasAnalysisEvaluator.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
namespace llvm {
3030
class AAResults;
3131
class Function;
32-
class FunctionPass;
3332

3433
class AAEvaluator : public PassInfoMixin<AAEvaluator> {
3534
int64_t FunctionCount = 0;

llvm/include/llvm/Analysis/InstructionSimplify.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ class DominatorTree;
4545
class Function;
4646
class Instruction;
4747
struct LoopStandardAnalysisResults;
48-
class MDNode;
4948
class Pass;
5049
template <class T, unsigned n> class SmallSetVector;
5150
class TargetLibraryInfo;

llvm/include/llvm/CodeGen/AccelTable.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@
103103
namespace llvm {
104104

105105
class AsmPrinter;
106-
class DwarfUnit;
107106
class DwarfDebug;
108107
class DwarfTypeUnit;
109108
class MCSymbol;

llvm/include/llvm/CodeGen/AntiDepBreaker.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include "llvm/CodeGen/MachineInstr.h"
2020
#include "llvm/CodeGen/TargetSubtargetInfo.h"
2121
#include "llvm/Support/Compiler.h"
22-
#include <cassert>
2322
#include <utility>
2423
#include <vector>
2524

llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,9 @@
2828
namespace llvm {
2929

3030
class GISelChangeObserver;
31-
class APFloat;
3231
class APInt;
3332
class ConstantFP;
3433
class GPtrAdd;
35-
class GStore;
3634
class GZExtLoad;
3735
class MachineIRBuilder;
3836
class MachineInstrBuilder;

llvm/include/llvm/Config/llvm-config.h.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
/* Indicate that this is LLVM compiled from the amd-gfx branch. */
1818
#define LLVM_HAVE_BRANCH_AMD_GFX
19-
#define LLVM_MAIN_REVISION 484113
19+
#define LLVM_MAIN_REVISION 484145
2020

2121
/* Define if LLVM_ENABLE_DUMP is enabled */
2222
#cmakedefine LLVM_ENABLE_DUMP

llvm/include/llvm/IR/IntrinsicsRISCV.td

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ let TargetPrefix = "riscv" in {
702702
LLVMMatchType<2>, LLVMMatchType<2>],
703703
[ImmArg<ArgIndex<4>>,ImmArg<ArgIndex<6>>, IntrNoMem, IntrHasSideEffects]>,
704704
RISCVVIntrinsic {
705-
let VLOperand = 6;
705+
let VLOperand = 5;
706706
}
707707
// For Saturating binary operations.
708708
// The destination vector type is NOT the same as first source vector.
@@ -1879,3 +1879,4 @@ let TargetPrefix = "riscv" in {
18791879
//===----------------------------------------------------------------------===//
18801880
include "llvm/IR/IntrinsicsRISCVXTHead.td"
18811881
include "llvm/IR/IntrinsicsRISCVXsf.td"
1882+
include "llvm/IR/IntrinsicsRISCVXCV.td"
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
//===- IntrinsicsRISCVXCV.td - CORE-V intrinsics -----------*- tablegen -*-===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
//
9+
// This file defines all of the CORE-V vendor intrinsics for RISC-V.
10+
//
11+
//===----------------------------------------------------------------------===//
12+
13+
class ScalarCoreVBitManipGprGprIntrinsic
14+
: DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty],
15+
[IntrNoMem, IntrSpeculatable]>;
16+
17+
class ScalarCoreVBitManipGprIntrinsic
18+
: DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_i32_ty],
19+
[IntrNoMem, IntrSpeculatable]>;
20+
21+
let TargetPrefix = "riscv" in {
22+
def int_riscv_cv_bitmanip_extract : ScalarCoreVBitManipGprGprIntrinsic;
23+
def int_riscv_cv_bitmanip_extractu : ScalarCoreVBitManipGprGprIntrinsic;
24+
def int_riscv_cv_bitmanip_bclr : ScalarCoreVBitManipGprGprIntrinsic;
25+
def int_riscv_cv_bitmanip_bset : ScalarCoreVBitManipGprGprIntrinsic;
26+
27+
def int_riscv_cv_bitmanip_insert
28+
: DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
29+
[IntrNoMem, IntrSpeculatable]>;
30+
31+
def int_riscv_cv_bitmanip_clb : ScalarCoreVBitManipGprIntrinsic;
32+
33+
def int_riscv_cv_bitmanip_bitrev
34+
: DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
35+
[IntrNoMem, IntrWillReturn, IntrSpeculatable,
36+
ImmArg<ArgIndex<1>>, ImmArg<ArgIndex<2>>]>;
37+
} // TargetPrefix = "riscv"

llvm/lib/CodeGen/AsmPrinter/DebugLocStream.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ namespace llvm {
1818
class AsmPrinter;
1919
class DbgVariable;
2020
class DwarfCompileUnit;
21-
class MachineInstr;
2221
class MCSymbol;
2322

2423
/// Byte stream of .debug_loc entries.

llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#include "llvm/CodeGen/LexicalScopes.h"
2626
#include "llvm/IR/DebugInfoMetadata.h"
2727
#include "llvm/Support/Casting.h"
28-
#include <cassert>
2928
#include <cstdint>
3029
#include <memory>
3130

llvm/lib/CodeGen/AsmPrinter/DwarfFile.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ class DbgLabel;
2828
class DINode;
2929
class DILocalScope;
3030
class DwarfCompileUnit;
31-
class DwarfTypeUnit;
3231
class DwarfUnit;
3332
class LexicalScope;
3433
class MCSection;

llvm/lib/CodeGen/MachineStableHash.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#include "llvm/CodeGen/MachineStableHash.h"
1515
#include "llvm/ADT/APFloat.h"
1616
#include "llvm/ADT/APInt.h"
17-
#include "llvm/ADT/ArrayRef.h"
1817
#include "llvm/ADT/Hashing.h"
1918
#include "llvm/ADT/STLExtras.h"
2019
#include "llvm/ADT/SmallVector.h"

llvm/lib/IR/Metadata.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1566,7 +1566,7 @@ void Instruction::updateDIAssignIDMapping(DIAssignID *ID) {
15661566
"Expect existing attachment to be mapped");
15671567

15681568
auto &InstVec = InstrsIt->second;
1569-
auto *InstIt = std::find(InstVec.begin(), InstVec.end(), this);
1569+
auto *InstIt = llvm::find(InstVec, this);
15701570
assert(InstIt != InstVec.end() &&
15711571
"Expect instruction to be mapped to attachment");
15721572
// The vector contains a ptr to this. If this is the only element in the

0 commit comments

Comments
 (0)