diff options
| author | Keith Randall <khr@golang.org> | 2025-10-28 10:07:48 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-10-28 11:12:30 -0700 |
| commit | ea50d61b667276bfd3449d5e172adc4b92f72290 (patch) | |
| tree | 8e93661aefa20aed0bc1454cc3aca744e1e68cf6 /src/cmd/compile/internal/ssa/_gen/generic.rules | |
| parent | bd4dc413cd80d3c160e875686e1be1eae5d48d4b (diff) | |
| download | go-ea50d61b667276bfd3449d5e172adc4b92f72290.tar.xz | |
cmd/compile: name change isDirect -> isDirectAndComparable
Now that it also restricts to comparable types. Followon to CL 713840.
Change-Id: Idd975c3fd16fb51f55360f2fa0b89ab0bf1d00ed
Reviewed-on: https://go-review.googlesource.com/c/go/+/715700
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Mateusz Poliwczak <mpoliwczak34@gmail.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/cmd/compile/internal/ssa/_gen/generic.rules')
| -rw-r--r-- | src/cmd/compile/internal/ssa/_gen/generic.rules | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/compile/internal/ssa/_gen/generic.rules b/src/cmd/compile/internal/ssa/_gen/generic.rules index 61157f7c8f..795e9f052e 100644 --- a/src/cmd/compile/internal/ssa/_gen/generic.rules +++ b/src/cmd/compile/internal/ssa/_gen/generic.rules @@ -2927,7 +2927,7 @@ // we know the underlying type is pointer-ish. (StaticLECall {f} typ_ x y mem) && isSameCall(f, "runtime.efaceeq") - && isDirectType(typ_) + && isDirectAndComparableType(typ_) && clobber(v) => (MakeResult (EqPtr x y) mem) @@ -2935,7 +2935,7 @@ // we know the underlying type is pointer-ish. (StaticLECall {f} itab x y mem) && isSameCall(f, "runtime.ifaceeq") - && isDirectIface(itab) + && isDirectAndComparableIface(itab) && clobber(v) => (MakeResult (EqPtr x y) mem) |
