Skip to content

cmd/compile: BCE of fixed width blocks during iteration #74474

Open
@Jorropo

Description

@Jorropo

With SIMD it is normal to iterate a slice let's say 8 elements at a time.
Sadly this incurs a bound check:

	const step = 8
	for i := 0; i <= len(x)-step; i += step {
		_ = x[i : i+step] // Unnecessary bound check here :'(
	}

Metadata

Metadata

Assignees

Labels

BugReportIssues describing a possible bug in the Go implementation.Performancecompiler/runtimeIssues related to the Go compiler and/or runtime.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions