[PATCH] Cleanup parameter of vectorizable_live_operation

Bernd Edlinger bernd.edlinger@hotmail.de
Fri Oct 11 12:57:00 GMT 2019


Hi Richard,

I became aware of this while looking at the -Wshadow=compatible-local warnings.
The function vectorizable_live_operation uses a parameter called "vec_stmt"
that is shadowed by something also called "vec_stmt".  But in this case,
the vec_stmt actually only used as a boolean, i.e. pointer is NULL or not.

This changes the parameter vec_stmt to vec_stmt_p, and propagates that
change to can_vectorize_live_stmts.


Bootstrapped and reg-tested on x86_64-pc-linux-gnu.
Is it OK for trunk?


Thanks
Bernd.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-cleanup-tree-vect-live-op.diff
Type: text/x-patch
Size: 6682 bytes
Desc: patch-cleanup-tree-vect-live-op.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20191011/deeacd3f/attachment.bin>


More information about the Gcc-patches mailing list