Skip to content

[InstCombine] Missing fold for fsqrt(select(b, c1, c2)) => select(b, fsqrt(c1), fsqrt(c2)) #110591

Closed
@Kmeakin

Description

@Kmeakin
float src(bool b) { return sqrt(b ? 4.0 : 1.0); }
float tgt(bool b) { return b ? sqrt(4.0) : sqrt(1.0); }

https://godbolt.org/z/xnvc5q7nx
https://alive2.llvm.org/ce/z/9tiFV4

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions