The incoming accumulator value can be discovered through a sext, in which case there will be a mismatch between the input and the result. So sign extend the accumulator input if we're performing a 64-bit mac.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D67220
[ARM][ParallelDSP] Fix for sext input ClosedPublic Authored by samparker on Sep 5 2019, 4:20 AM.
Details Summary The incoming accumulator value can be discovered through a sext, in which case there will be a mismatch between the input and the result. So sign extend the accumulator input if we're performing a 64-bit mac.
Diff Detail Event Timelinesamparker added inline comments. This revision is now accepted and ready to land.Sep 6 2019, 12:45 PM Closed by commit rL371370: [ARM][ParallelDSP] Fix for sext input (authored by sam_parker). · Explain WhySep 9 2019, 1:37 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 218887 lib/Target/ARM/ARMParallelDSP.cpp
test/CodeGen/ARM/ParallelDSP/blocks.ll
test/CodeGen/ARM/ParallelDSP/sext-acc.ll
|
Is this really the right place to do this? At this point, we still aren't sure we're going to transform the code. You could instead just do this after you call getAccumulator() in InsertParallelMACs.