[PATCH] Check for undefined before not returning a constant value

Andrew MacLeod amacleod@redhat.com
Thu Oct 22 00:04:54 GMT 2020


Full comments in the PR, but basically substitute and fold was expecting 
to see a constant returned for any range which globally evaluates to a 
constant.
This allowed it to replace all uses of an ssa name as they were encountered.

The ranger model can return UNDEFINED for the range of names in blocks 
which are unreachable..  the patch simply overrides the UNDEFINED value 
in folders query if the global value is a constant so that 
subst_and_fold will get what it is expecting.

Bootstrapped on  x86_64-pc-linux-gnu, no regressions, pushed.

Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr97515.patch
Type: text/x-patch
Size: 2269 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20201021/6a56be78/attachment.bin>


More information about the Gcc-patches mailing list