Unverified Commit e20462a0 authored by Danila Malyutin's avatar Danila Malyutin Committed by GitHub
Browse files

[StatepointLowering] Use Constant instead of TargetConstant for undef value (#81635)



Prevents isel errors when trying to lower gc relocate of undef value
(which turns into CopyToReg of TargetConstant). Such relocates may occur
after DCE (e.g. after GVN removes some dead blocks) if there are not
passes like instcombine scheduled after to clean them up.

Fixes #80294

---------

Co-authored-by: default avatarMatt Arsenault <arsenm2@gmail.com>
parent f79f58d5
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment