This is an archive of the discontinued LLVM Phabricator instance.

[KNL] Fix UMULO lowering.
ClosedPublic

Authored by igorb on Jun 6 2016, 12:42 AM.

Details

Diff Detail

Repository
rL LLVM

Event Timeline

igorb updated this revision to Diff 59692.Jun 6 2016, 12:42 AM
igorb retitled this revision from to [KNL] Fix UMULO lowering..
igorb updated this object.
igorb added a reviewer: delena.
igorb set the repository for this revision to rL LLVM.
igorb added a subscriber: llvm-commits.
delena added inline comments.Jun 6 2016, 3:55 AM
test/CodeGen/X86/xaluo.ll
737 ↗(On Diff #59692)

I reduced the case. Please use it.

define i1 @bug27873(i64 %c1, i1 %c2) {

%mul = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %c1, i64 160)
%mul.overflow = extractvalue { i64, i1 } %mul, 1
%x1 = or i1 %c2, %mul.overflow
ret i1 %x1

}

igorb updated this revision to Diff 59702.Jun 6 2016, 4:03 AM

Thanks!

delena accepted this revision.Jun 6 2016, 4:55 AM
delena edited edge metadata.
This revision is now accepted and ready to land.Jun 6 2016, 4:55 AM
Closed by commit rL271891: [KNL] Fix UMULO lowering. (authored by ibreger). · Explain WhyJun 6 2016, 5:31 AM
This revision was automatically updated to reflect the committed changes.