This is small cleanup now vec has safe_emplace_push. We can just call
safe_emplace_push instead of also causing make_pair.

Bootstrapped and tested on x86_64-linux-gnu.

gcc/ChangeLog:

        * tree-ssa-phiopt.cc (auto_flow_sensitive::auto_flow_sensitive): Use
        safe_emplace_push instead of `safe_push( make_pair (`.
        (cond_if_else_store_replacement): Likewise.

Signed-off-by: Andrew Pinski <quic_apin...@quicinc.com>
---
 gcc/tree-ssa-phiopt.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/tree-ssa-phiopt.cc b/gcc/tree-ssa-phiopt.cc
index 6a89f57a41a..5eca7f80f01 100644
--- a/gcc/tree-ssa-phiopt.cc
+++ b/gcc/tree-ssa-phiopt.cc
@@ -899,7 +899,7 @@ auto_flow_sensitive::auto_flow_sensitive (gimple *s)
     {
       flow_sensitive_info_storage storage;
       storage.save_and_clear (def);
-      stack.safe_push (std::make_pair (def, storage));
+      stack.safe_emplace_push (def, storage);
     }
 }
 
@@ -3787,7 +3787,7 @@ cond_if_else_store_replacement (basic_block then_bb, 
basic_block else_bb,
       if (!found)
         continue;
 
-      stores_pairs.safe_push (std::make_pair (then_store, else_store));
+      stores_pairs.safe_emplace_push (then_store, else_store);
     }
 
   /* No pairs of stores found.  */
-- 
2.43.0

Reply via email to