r255442 - in /trunk/gcc/go/gofrontend: MERGE ex...

ian@gcc.gnu.org ian@gcc.gnu.org
Wed Dec 6 13:32:00 GMT 2017


Author: ian
Date: Wed Dec  6 13:32:06 2017
New Revision: 255442

URL: https://gcc.gnu.org/viewcvs?rev=255442&root=gcc&view=rev
Log:
    compiler: handle set-and-use-temp in nilcheck code
    
    Change the code in Unary_expression::do_get_backend that introduces
    explicit nil checks for dereference operations to special case
    set-and-use-temporary expressions. For this case it is better to
    generate an explicit reference of the temp in the final conditional
    (avoids introducing tree sharing).
    
    Reviewed-on: https://go-review.googlesource.com/81915

Modified:
    trunk/gcc/go/gofrontend/MERGE
    trunk/gcc/go/gofrontend/expressions.cc



More information about the Gcc-cvs mailing list