This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] exclude bitcast of ppc_fp128 in icmp signbit fold
ClosedPublic

Authored by spatel on Apr 7 2020, 5:23 AM.

Details

Summary

Based on the post-commit comments for rG0f56bbc, there might be a problem with this transform:

(bitcast (fpext/fptrunc X)) to iX) < 0 --> (bitcast X to iY) < 0

...and the ppc_fp128 data type, so conservatively bypass if we are bitcasting a ppc_fp128.

Diff Detail

Event Timeline

spatel created this revision.Apr 7 2020, 5:23 AM
spatel updated this revision to Diff 255708.Apr 7 2020, 10:04 AM

Patch updated:
Add code comment to better explain the transform and PPC limitation.

echristo accepted this revision.Apr 7 2020, 10:23 AM

LGTM for now :)

This revision is now accepted and ready to land.Apr 7 2020, 10:23 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptApr 8 2020, 5:58 AM