This is an archive of the discontinued LLVM Phabricator instance.

[X86DomainReassignment] Don't delete IMPLICIT_DEF nodes
ClosedPublic

Authored by loladiro on May 12 2018, 4:36 PM.

Details

Summary

We cannot simply delete IMPLICIT_DEF nodes. They may be used
later (e.g. by a PHI) and deleting them will cause later passes (e.g.
LiveVariables) to crash. However, it seems fine to ignore them for
purposes of the domain reassignment (as we do with PHI).

Fixes PR37430
Fixes JuliaLang/julia#27080

Diff Detail

Repository
rL LLVM

Event Timeline

loladiro created this revision.May 12 2018, 4:36 PM
craig.topper added inline comments.May 13 2018, 4:01 PM
test/CodeGen/X86/domain-reassignment-implicit-def.ll
1 ↗(On Diff #146490)

These don't seem to have been generated by the script. The checks don't cover the whole function.

loladiro added inline comments.May 16 2018, 5:45 PM
test/CodeGen/X86/domain-reassignment-implicit-def.ll
1 ↗(On Diff #146490)

Well, they were generated by the script, but then the output seemed excessively verbose, so I cut it down to what I wanted to see. Do you want me to remove the comment or have the checks cover the whole function?

You can just remove the comment.

loladiro updated this revision to Diff 147222.May 16 2018, 5:59 PM

Remove incorrect comment from test case.

This revision is now accepted and ready to land.May 16 2018, 9:47 PM
This revision was automatically updated to reflect the committed changes.