Skip to content

SoA optimization can over-promote objects used inside loops to produce slower code #1280

Open
stan-dev/stan
#3188

Description

@WardBrian

Current Behavior:

See this forum thread by @mike-lawrence which contains an example that is ~5x slower at --O1 compared to the default.

Expected Behavior:

SoA optimization should not promote things being assigned to inside of a tight for loop

Activity

  1. changed the title [-]Function inlining can lead to much slower code in certain cases[/-] [+]SoA optimization can over-promote objects used inside loops to produce slower code[/+] on Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcpp-codegenoptimization

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions