Skip to content

cmd/compile: remove likely/unlikely marks from assembly #19718

Closed

Description

@randall77

Conditional branches sometimes have a likely/unlikely bit attached to them.

	0x008c 00140 (s.go:7)	JLT	$0, 55

$0 means the branch is unlikely, $1 means the branch is likely.
There's really no reason why the assembly output should show these. It's an artifact of instruction reordering in the obj library that is now gone. We should just stop setting these marks when generating Progs.

See #15837

Activity

  1. added this to the Go1.9 milestone on Mar 25, 2017
  2. self-assigned this
    on Mar 25, 2017
  3. gopherbot commented on Mar 26, 2017

    @gopherbot
    Contributor

    CL https://golang.org/cl/38664 mentions this issue.

  4. locked and limited conversation to collaborators on Mar 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions