Skip to content

Updating lclmorph to support bitcast #71839

Closed
@tannergooding

Description

@tannergooding

With #71567, the front end now has minimal support for GT_BITCAST nodes including value numbering and constant folding.

It should now be feasible to address some of the TODO-ADDR comments in LocalAddressVisitor::SelectLocalIndirTransform and LocalAddressVisitor::MorphLocalAddress by recognizing certain indirections as being representable as a GT_BITCAST rather than keeping it as a GT_IND.

To start we should likely only handle float<->int/uint and double<->long/ulong. There may also be some benefit in handling conversions surrounding simd8.

In the future this could likely be extended to struct types and potentially other primitives as well.

category:cq
theme:morph

Metadata

Metadata

Labels

area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions