Re: [PATCH 2/2] phiopt: C++ify cond_if_else_store_replacement

2024-09-17 Thread Richard Biener
On Wed, Sep 18, 2024 at 5:08 AM Andrew Pinski wrote: > > This C++ify cond_if_else_store_replacement by using range fors > and changing using a std::pair instead of 2 vecs. > I had a hard time understanding the code when there was 2 vecs > so having a vec of a pair makes it easier to understand the

[PATCH 2/2] phiopt: C++ify cond_if_else_store_replacement

2024-09-17 Thread Andrew Pinski
This C++ify cond_if_else_store_replacement by using range fors and changing using a std::pair instead of 2 vecs. I had a hard time understanding the code when there was 2 vecs so having a vec of a pair makes it easier to understand the relationship between the 2. gcc/ChangeLog: * tree-ssa