This is an archive of the discontinued LLVM Phabricator instance.

[CodeGenPrepare] Expand freeze conversion to support fcmp and icmp with null
ClosedPublic

Authored by aqjune on Mar 12 2020, 12:38 AM.

Details

Summary

This is a simple patch that expands https://reviews.llvm.org/D75859 to pointer comparison and fcmp

Checked with Alive2

Diff Detail

Event Timeline

aqjune created this revision.Mar 12 2020, 12:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 12 2020, 12:38 AM
aqjune edited the summary of this revision. (Show Details)Mar 12 2020, 12:40 AM
aqjune added reviewers: reames, jdoerfert.
jdoerfert accepted this revision.Mar 13 2020, 12:28 AM

LGTM. Move the CmpI->hasOneUse() check up.

This revision is now accepted and ready to land.Mar 13 2020, 12:28 AM
aqjune updated this revision to Diff 250145.Mar 13 2020, 1:21 AM

Move hasOneUse() call & rebase