[all-commits] [llvm/llvm-project] e20462: [StatepointLowering] Use Constant instead of Targe...
Danila Malyutin via All-commits
all-commits at lists.llvm.org
Tue Feb 13 10:58:14 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e20462a069670c24ff512cca32688a29803852f4
https://github.com/llvm/llvm-project/commit/e20462a069670c24ff512cca32688a29803852f4
Author: Danila Malyutin <danilaml at users.noreply.github.com>
Date: 2024-02-13 (Tue, 13 Feb 2024)
Changed paths:
M llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp
A llvm/test/CodeGen/X86/statepoint-relocate-undef.ll
Log Message:
-----------
[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: Matt Arsenault <arsenm2 at gmail.com>
More information about the All-commits
mailing list