This is an archive of the discontinued LLVM Phabricator instance.

[X86] Improve lowering of (v2i64 (setgt X, -1)) on pre-SSE2 targets. Enable v2i64 in foldVectorXorShiftIntoCmp.
ClosedPublic

Authored by craig.topper on Jan 6 2020, 10:59 PM.

Details

Summary

Similar to D72302 but for the canonical form for the opposite case. I've changed foldVectorXorShiftIntoCmp to form a target independent setcc node instead of PCMPGT now and enabled its for v2i64 on pre-SSE4.2 targets. The setcc should eventually get lowered to PCMPGT or the new v2i64 sequence.

Diff Detail

Event Timeline

craig.topper created this revision.Jan 6 2020, 10:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 6 2020, 10:59 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
RKSimon accepted this revision.Jan 7 2020, 1:09 AM

LGTM

This revision is now accepted and ready to land.Jan 7 2020, 1:09 AM
This revision was automatically updated to reflect the committed changes.