This is an archive of the discontinued LLVM Phabricator instance.

[DAGCombine] Support truncated constants for fptosi.sat combining
ClosedPublic

Authored by e-kud on Jun 14 2023, 8:28 AM.

Diff Detail

Event Timeline

e-kud created this revision.Jun 14 2023, 8:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 14 2023, 8:28 AM
e-kud requested review of this revision.Jun 14 2023, 8:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 14 2023, 8:28 AM
dmgreen accepted this revision.Jun 15 2023, 1:58 AM

I think this makes sense, so long as the truncate we peek through is accounted for in the constant. LGTM

llvm/test/CodeGen/X86/fpclamptosat.ll
410

Remove this comment now? Same below.

This revision is now accepted and ready to land.Jun 15 2023, 1:58 AM
e-kud updated this revision to Diff 532166.Jun 16 2023, 8:26 AM

Rebased and removed FIXME

RKSimon accepted this revision.Jun 16 2023, 8:32 AM

LGTM - cheers

e-kud updated this revision to Diff 544374.Jul 26 2023, 8:02 AM

Rebased

e-kud updated this revision to Diff 544380.Jul 26 2023, 8:16 AM

Return nounwind attribute missed during the last rebase.

RKSimon accepted this revision.Jul 26 2023, 10:50 AM

LGTM - cheers

This revision was landed with ongoing or failed builds.Jul 28 2023, 8:55 AM
This revision was automatically updated to reflect the committed changes.