This is an archive of the discontinued LLVM Phabricator instance.

[llvm-exegesis] Fix function return generation so it doesn't return register 0
ClosedPublic

Authored by john.brawn on Oct 10 2018, 5:32 AM.

Details

Summary

When fillMachineFunction generates a return on targets without a return opcode (such as AArch64) it should pass an empty set of registers as the return registers, not 0 which means register number zero.

Diff Detail

Repository
rL LLVM

Event Timeline

john.brawn created this revision.Oct 10 2018, 5:32 AM
courbet accepted this revision.Oct 10 2018, 5:52 AM

/*implicit*/ ArrayRef(const T &OneElt)

This is nasty...

Thanks.

This revision is now accepted and ready to land.Oct 10 2018, 5:52 AM
gchatelet accepted this revision.Oct 10 2018, 5:58 AM

Thx a lot!

This revision was automatically updated to reflect the committed changes.