This is an archive of the discontinued LLVM Phabricator instance.

AVX-512: Fixed ICMP instruction selection for i1 operand
ClosedPublic

Authored by delena on Mar 27 2016, 10:43 PM.

Details

Summary

ICMP instruction selection fails on SKX and KNL for i1 operand.
I use XOR to resolve:
(A == B) is equivalent to (A xor B) == 0

Diff Detail

Repository
rL LLVM

Event Timeline

delena updated this revision to Diff 51733.Mar 27 2016, 10:43 PM
delena retitled this revision from to AVX-512: Fixed ICMP instruction selection for i1 operand.
delena updated this object.
delena added a reviewer: igorb.
delena set the repository for this revision to rL LLVM.
delena added a subscriber: llvm-commits.
igorb accepted this revision.Mar 27 2016, 11:34 PM
igorb edited edge metadata.

LGTM

This revision is now accepted and ready to land.Mar 27 2016, 11:34 PM
This revision was automatically updated to reflect the committed changes.