This is an archive of the discontinued LLVM Phabricator instance.

[X86][AVX] Push sign extensions of comparison bool results through bitops (PR42025)
ClosedPublic

Authored by RKSimon on Sep 30 2019, 7:00 AM.

Details

Summary

As discussed on PR42025, with more complex boolean math we can end up with many truncations/extensions of the comparison results through each bitop.

This patch handles the cases introduced in combineBitcastvxi1 by pushing the sign extension through the AND/OR/XOR ops so its just the original SETCC ops that gets extended.

Diff Detail

Repository
rL LLVM

Event Timeline

RKSimon created this revision.Sep 30 2019, 7:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 30 2019, 7:00 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
This revision is now accepted and ready to land.Oct 5 2019, 9:36 AM
This revision was automatically updated to reflect the committed changes.