Skip to content

cmd/compile: deduping of panicindex calls on the same line appears broken #20332

@josharian

Description

@josharian

Run go tool compile -S fannkuch_test.go 2>&1 | grep -c "CALL.*panicindex". This yields 9 on 1.8.1 and 13 on tip. It appears that the panicindex-on-same-line deduping is broken; the extra panicindex calls are all duplicates. Tip output:

	0x00ef 00239 (fannkuch_test.go:23)	CALL	runtime.panicindex(SB)
	0x0130 00304 (fannkuch_test.go:34)	CALL	runtime.panicindex(SB)
	0x0191 00401 (fannkuch_test.go:40)	CALL	runtime.panicindex(SB)
	0x0198 00408 (fannkuch_test.go:40)	CALL	runtime.panicindex(SB)
	0x01ed 00493 (fannkuch_test.go:45)	CALL	runtime.panicindex(SB)
	0x01f4 00500 (fannkuch_test.go:45)	CALL	runtime.panicindex(SB)
	0x026d 00621 (fannkuch_test.go:65)	CALL	runtime.panicindex(SB)
	0x0274 00628 (fannkuch_test.go:65)	CALL	runtime.panicindex(SB)
	0x02d4 00724 (fannkuch_test.go:68)	CALL	runtime.panicindex(SB)
	0x02db 00731 (fannkuch_test.go:67)	CALL	runtime.panicindex(SB)
	0x02e7 00743 (fannkuch_test.go:49)	CALL	runtime.panicindex(SB)
	0x02fd 00765 (fannkuch_test.go:37)	CALL	runtime.panicindex(SB)
	0x0313 00787 (fannkuch_test.go:37)	CALL	runtime.panicindex(SB)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions