Skip to content

Slower matrixmultiply in nightly-2017-12-16 #46923

Closed
@bluss

Description

@bluss
  • Good rustc 1.24.0-nightly (0077d12 2017-12-14) (rustup nightly-2017-12-15)
  • Bad rustc 1.24.0-nightly (77efd68 2017-12-15) (rustup nightly-2017-12-16)

matrixmultiply version 0.1.14. This code is deliberately seeking autovectorization, and it's understood that such things could be fragile; but for a long time it has worked fine.

Before:

RUSTFLAGS=-Ctarget-feature=+avx cargo +nightly-2017-12-15 bench -v m127

test mat_mul_f32::m127             ... bench:     121,631 ns/iter (+/- 10,097)
test mat_mul_f64::m127             ... bench:     198,662 ns/iter (+/- 13,402)

After:

RUSTFLAGS=-Ctarget-feature=+avx cargo +nightly-2017-12-16 bench -v m127

test mat_mul_f32::m127             ... bench:     209,268 ns/iter (+/- 12,809)
test mat_mul_f64::m127             ... bench:     295,810 ns/iter (+/- 2,167)

The PRs in that range are:

git log --oneline --first-parent 0077d128d..77efd6800
77efd68 Auto merge of #46623 - eddyb:issue-46449, r=nagisa
50f6c3e Auto merge of #46745 - steveklabnik:rollup, r=steveklabnik
5a0dc2d Auto merge of #46740 - oli-obk:rls, r=nrc
b4f3232 Auto merge of #46706 - sunjay:gat-lifetimes, r=nikomatsakis
04b2344 Auto merge of #46653 - estebank:str-as-ch, r=petrochenkov
84feab3 Auto merge of #46537 - pnkfelix:two-phase-borrows, r=arielb1
9331031 Auto merge of #46701 - eddyb:vector-newtypes, r=nagisa
2f35141 Auto merge of #46641 - petrochenkov:nohelp2, r=nikomatsakis

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-SIMDArea: SIMD (Single Instruction Multiple Data)C-bugCategory: This is a bug.I-slowIssue: Problems and improvements with respect to performance of generated code.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions