Skip to content

[flang] Create the real constant directly with the argument type. #150452

@c8ef

Description

@c8ef

See the discussion in #149525.

Currently, we create the float64 type directly, and then another cast is applied, which has two drawbacks.

  • It may lead to suboptimal precision for f128.
  • It introduces a redundant cast for f32.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions