Message ID | 20211016193418.372265-1-hjl.tools@gmail.com |
---|---|
State | New |
Headers | show |
Series | Change set_ptr_nonull to set_ptr_nonnull in comments | expand |
On Sat, Oct 16, 2021 at 9:35 PM H.J. Lu via Gcc-patches <gcc-patches@gcc.gnu.org> wrote: > > * value-query.cc (get_ssa_name_ptr_info_nonnull): Change > set_ptr_nonull to set_ptr_nonnull in comments. OK (but it's also obvious) > --- > gcc/value-query.cc | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/gcc/value-query.cc b/gcc/value-query.cc > index ab133aab114..17ebd86ce5f 100644 > --- a/gcc/value-query.cc > +++ b/gcc/value-query.cc > @@ -296,7 +296,7 @@ get_ssa_name_ptr_info_nonnull (const_tree name) > return false; > /* TODO Now pt->null is conservatively set to true in PTA > analysis. vrp is the only pass (including ipa-vrp) > - that clears pt.null via set_ptr_nonull when it knows > + that clears pt.null via set_ptr_nonnull when it knows > for sure. PTA will preserves the pt.null value set by VRP. > > When PTA analysis is improved, pt.anything, pt.nonlocal > -- > 2.32.0 >
diff --git a/gcc/value-query.cc b/gcc/value-query.cc index ab133aab114..17ebd86ce5f 100644 --- a/gcc/value-query.cc +++ b/gcc/value-query.cc @@ -296,7 +296,7 @@ get_ssa_name_ptr_info_nonnull (const_tree name) return false; /* TODO Now pt->null is conservatively set to true in PTA analysis. vrp is the only pass (including ipa-vrp) - that clears pt.null via set_ptr_nonull when it knows + that clears pt.null via set_ptr_nonnull when it knows for sure. PTA will preserves the pt.null value set by VRP. When PTA analysis is improved, pt.anything, pt.nonlocal