This is an archive of the discontinued LLVM Phabricator instance.

Revert TargetLowering::getTypeForExtArgOrReturn to use EVTs.
ClosedPublic

Authored by akuharev on Jun 5 2014, 8:27 AM.

Details

Summary

Author of r170537 missed that VT.isInteger()
includes extended integer also.
MVT doesn't contain arbitrary bit width integers.
VT.getSimpleVT() works only for simple types and
doesn't work for extended integer.
Conversion from extended integer i2 ... i31 to i32
takes place in getTypeForExtArgOrReturn,
so parameter should be EVT.
This patch fixes bug 19635.

Diff Detail

Event Timeline

akuharev updated this revision to Diff 10141.Jun 5 2014, 8:27 AM
akuharev retitled this revision from to Revert TargetLowering::getTypeForExtArgOrReturn to use EVTs..
akuharev updated this object.
akuharev edited the test plan for this revision. (Show Details)
akuharev added reviewers: void, patrik.h.hagglund.
akuharev added a subscriber: Unknown Object (MLST).
patrik.h.hagglund accepted this revision.Aug 8 2014, 2:15 AM
patrik.h.hagglund edited edge metadata.

Commited in r215190.

This revision is now accepted and ready to land.Aug 8 2014, 2:15 AM