diff options
author | Kazu Hirata <kazu@google.com> | 2025-03-23 15:50:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-23 15:50:34 -0700 |
commit | 41b76119ecc2b22546dc27ca51947304cf5aca28 (patch) | |
tree | a16c5ce18c7df03245d45d7c36cdcabde2c217fc /llvm/lib/CodeGen/CodeGenPrepare.cpp | |
parent | 49ce038a1abe594735c81ec6b53789f88d358edc (diff) | |
download | llvm-41b76119ecc2b22546dc27ca51947304cf5aca28.zip llvm-41b76119ecc2b22546dc27ca51947304cf5aca28.tar.gz llvm-41b76119ecc2b22546dc27ca51947304cf5aca28.tar.bz2 |
[llvm] Use range constructors for *Set (NFC) (#132636)
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r-- | llvm/lib/CodeGen/CodeGenPrepare.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp index 2d34c8e..e3d6a5e 100644 --- a/llvm/lib/CodeGen/CodeGenPrepare.cpp +++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp @@ -7576,8 +7576,7 @@ bool CodeGenPrepare::optimizeSelectInst(SelectInst *SI) { else if (FalseBlock == nullptr) FalseBlock = StartBlock; - SmallPtrSet<const Instruction *, 2> INS; - INS.insert_range(ASI); + SmallPtrSet<const Instruction *, 2> INS(llvm::from_range, ASI); // Use reverse iterator because later select may use the value of the // earlier select, and we need to propagate value through earlier select // to get the PHI operand. |