[llvm] 46df454 - [CodeGen] Construct SmallVector with ArrayRef (NFC) (#109566)

via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 22 00:17:13 PDT 2024


Author: Kazu Hirata
Date: 2024-09-22T00:17:10-07:00
New Revision: 46df454c9a57d32aa1471fc322d1df1ba17fbe39

URL: https://github.com/llvm/llvm-project/commit/46df454c9a57d32aa1471fc322d1df1ba17fbe39
DIFF: https://github.com/llvm/llvm-project/commit/46df454c9a57d32aa1471fc322d1df1ba17fbe39.diff

LOG: [CodeGen] Construct SmallVector with ArrayRef (NFC) (#109566)

Added: 
    

Modified: 
    llvm/lib/CodeGen/EarlyIfConversion.cpp

Removed: 
    


################################################################################
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