Skip to content

gtTreeHasSideEffects handles GT_INTRINSIC incorrectly #106187

Closed
@jakobbotsch

Description

@jakobbotsch

This function is supposed to return true if the tree rooted at a node has any side effects in it. It is equivalent to checking gtFlags & GTF_SIDE_EFFECT, except for a special case around GT_CALL and GT_INTRINSIC.

The GT_INTRINSIC special case looks wrong; it does not return true for an intrinsic where the side effect comes from a sufficiently nested descendant node.

Metadata

Metadata

Assignees

Labels

area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIin-prThere is an active PR which will close this issue when it is merged

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions