This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Only produce qadd8b under hasV6Ops
ClosedPublic

Authored by dmgreen on Apr 26 2020, 3:16 AM.

Details

Summary

When compiling for a arm5te cpu from clang, the +dsp attribute is set. This meant we could try and generate qadd8 instructions where we would end up having no pattern. I've changed the condition here to be hasV6Ops && hasDSP, which is what other parts of ARMISelLowering seem to use for similar instructions.

Fixed PR45677.

Diff Detail

Event Timeline

dmgreen created this revision.Apr 26 2020, 3:16 AM
dmgreen edited the summary of this revision. (Show Details)Apr 26 2020, 3:16 AM
dim added a comment.Apr 26 2020, 3:44 AM

Trying this out now, thanks!

dim accepted this revision.Apr 26 2020, 8:02 AM

Verified that this fixes both the original test case (which is rather large so I didn't attach it to the PR), and the minimized test case.

This revision is now accepted and ready to land.Apr 26 2020, 8:02 AM
This revision was automatically updated to reflect the committed changes.