• Keith Randall's avatar
    cmd/compile: fix store chain in schedule pass · 978af9c2
    Keith Randall authored
    Tuple ops are weird. They are essentially a pair of ops,
    one which consumes a mem and one which generates a mem (the Select1).
    The schedule pass didn't handle these quite right.
    
    Fix the scheduler to include both parts of the paired op in
    the store chain. That makes sure that loads are correctly ordered
    with respect to the first of the pair.
    
    Add a check for the ssacheck builder, that there is only one
    live store at a time. I thought we already had such a check, but
    apparently not...
    
    Fixes #20335
    
    Change-Id: I59eb3446a329100af38d22820b1ca2190ca46a78
    Reviewed-on: https://go-review.googlesource.com/43294
    Run-TryBot: Keith Randall <khr@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarCherry Zhang <cherryyz@google.com>
    978af9c2
check.go 10.3 KB