]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: remove the resultInArg0 register checks on linux/loong64
authorGuoqi Chen <chenguoqi@loongson.cn>
Mon, 4 Jul 2022 02:16:12 +0000 (10:16 +0800)
committerWayne Zuo <wdvxdr@golangcn.org>
Fri, 4 Nov 2022 00:41:05 +0000 (00:41 +0000)
The automatic resultInArg0 register check has been implemented by CL 296010.

Change-Id: Id0e085ded9aa097bd02593c359a750d938a3aaa6
Reviewed-on: https://go-review.googlesource.com/c/go/+/416034
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Wayne Zuo <wdvxdr@golangcn.org>
Run-TryBot: Wayne Zuo <wdvxdr@golangcn.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/cmd/compile/internal/loong64/ssa.go

index e004c6f7fbecf1abadabbdad967ee40354b2829c..68a2d8ac1bdc71aed4ebe7de1a363effd3656ba7 100644 (file)
@@ -101,9 +101,6 @@ func ssaGenValue(s *ssagen.State, v *ssa.Value) {
                p.To.Type = obj.TYPE_REG
                p.To.Reg = y
        case ssa.OpLOONG64MOVVnop:
-               if v.Reg() != v.Args[0].Reg() {
-                       v.Fatalf("input[0] and output not in same register %s", v.LongString())
-               }
                // nothing to do
        case ssa.OpLoadReg:
                if v.Type.IsFlags() {