This is an archive of the discontinued LLVM Phabricator instance.

[SystemZ] Bugfix in SystemZTargetLowering::combineINT_TO_FP()
ClosedPublic

Authored by jonpa on May 18 2022, 6:17 AM.

Details

Summary

Make sure to also handle extended value types to avoid crashing.

Resulting integers greater than 64 bits are not handled (i128 is not a legal type), and vectorizing that seems to result in libcalls instead of just scalarization.

Other extended vector types like <10 x float> are allowed by this patch currently, although that is NFC on benchmarks, so it is perhaps not necessary..(?).

Diff Detail

Event Timeline

jonpa created this revision.May 18 2022, 6:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 18 2022, 6:17 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
jonpa requested review of this revision.May 18 2022, 6:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 18 2022, 6:17 AM
uweigand accepted this revision.May 18 2022, 6:40 AM

LGTM, thanks!

This revision is now accepted and ready to land.May 18 2022, 6:40 AM
This revision was landed with ongoing or failed builds.May 18 2022, 7:33 AM
This revision was automatically updated to reflect the committed changes.