• Josh Bleecher Snyder's avatar
    cmd/compile: rework handling of udiv on ARM · 01b1a34a
    Josh Bleecher Snyder authored
    Instead of populating the aux symbol
    of CALLudiv during rewrite rules,
    populate it during genssa.
    
    This simplifies the rewrite rules.
    It also removes all remaining calls
    to ctxt.Lookup from any rewrite rules.
    This is a first step towards removing
    ctxt from ssa.Cache entirely,
    and also a first step towards converting
    the obj.LSym.Version field into a boolean.
    It should also speed up compilation.
    
    Also, move func udiv into package runtime.
    That's where it is anyway,
    and it lets udiv look and act like the rest of
    the runtime support functions.
    
    Change-Id: I41462a632c14fdc41f61b08049ec13cd80a87bfe
    Reviewed-on: https://go-review.googlesource.com/41191
    Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: default avatarCherry Zhang <cherryyz@google.com>
    Reviewed-by: default avatarMatthew Dempsky <mdempsky@google.com>
    01b1a34a
opGen.go 545 KB