[llvm] [CodeGen] Construct SmallVector with ArrayRef (NFC) (PR #109566)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 21 22:53:45 PDT 2024
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/109566
None
>From c233e1de57b023c9e682937868dd6fb597d20740 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Fri, 20 Sep 2024 14:39:20 -0700
Subject: [PATCH] [CodeGen] Construct SmallVector with ArrayRef (NFC)
---
llvm/lib/CodeGen/EarlyIfConversion.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/CodeGen/EarlyIfConversion.cpp b/llvm/lib/CodeGen/EarlyIfConversion.cpp
index 994a00b1b9699d..bd401be37189df 100644
--- a/llvm/lib/CodeGen/EarlyIfConversion.cpp
+++ b/llvm/lib/CodeGen/EarlyIfConversion.cpp
@@ -1117,7 +1117,7 @@ class PredicatorStrategy : public SSAIfConv::PredicationStrategyBase {
void predicateBlock(MachineBasicBlock *MBB, ArrayRef<MachineOperand> Cond,
bool Reverse) override {
- SmallVector<MachineOperand> Condition(Cond.begin(), Cond.end());
+ SmallVector<MachineOperand> Condition(Cond);
if (Reverse) {
bool CanRevCond = !TII->reverseBranchCondition(Condition);
assert(CanRevCond && "Reversed predicate is not supported");
More information about the llvm-commits
mailing list