This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] Fix the bug of ISD::ADDE to set its second return type to glue
ClosedPublic

Authored by ZhangKang on Dec 20 2018, 6:07 PM.

Details

Summary

This patch is to fix the bug imported by rL341634: https://reviews.llvm.org/rL341634 .
In above submit , the the return type of ISD::ADDE is 14224: SDVTList VTs = DAG.getVTList(MVT::i64, MVT::i64),
but in fact, the second return type of ISD::ADDE should be MVT::Glue not MVT::i64.

Diff Detail

Repository
rL LLVM

Event Timeline

ZhangKang created this revision.Dec 20 2018, 6:07 PM
hfinkel accepted this revision.Dec 21 2018, 9:35 AM

LGTM

This revision is now accepted and ready to land.Dec 21 2018, 9:35 AM

LGTM

Also, if there's a way to have a non-asserts-required test case, that would be useful. How did you notice the problem?

ZhangKang added a comment.EditedDec 21 2018, 11:07 PM

LGTM

Also, if there's a way to have a non-asserts-required test case, that would be useful. How did you notice the problem?

@hfinkel , I notice the bug of second return type for the ISD::ADDE when I am working on another issue about ISD::ADDE, whose code has not been submitted.
I think it's hard to find another no-asserts case, because there are few conditions the bug will be triggered.

This revision was automatically updated to reflect the committed changes.