Skip to content

llvm-reduce should try simplifying instructions assuming fast math #63429

Open
@arsenm

Description

@arsenm

I see patterns such as this after reduction:

  %i3.i = tail call <3 x float> @llvm.fmuladd.v3f32(<3 x float> %extractVec278.i.i, <3 x float> zeroinitializer, <3 x float> %extractVec3.i.i.i)

InstCombine will fold this to fadd, but only with nsz. I'm not sure the best way to force this simplification. We could either start introducing fast math flags, or repeat the same kind of folds in the reducer.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions