This is an archive of the discontinued LLVM Phabricator instance.

Fold a loop for array processing in ComputeLinearIndex (NFC)
ClosedPublic

Authored by mehdi_amini on Jan 2 2015, 11:04 PM.

Details

Summary

When processing an array, every Elt has the same layout, it is
useless to recursively call each ComputeLinearIndex on each element.
Just do it once and multiply by the number of elements.

Diff Detail

Repository
rL LLVM

Event Timeline

mehdi_amini retitled this revision from to Fold a loop for array processing in ComputeLinearIndex.
mehdi_amini updated this object.
mehdi_amini edited the test plan for this revision. (Show Details)
mehdi_amini added a subscriber: Unknown Object (MLST).
mehdi_amini retitled this revision from Fold a loop for array processing in ComputeLinearIndex to Fold a loop for array processing in ComputeLinearIndex (NFC).Jan 13 2015, 2:16 AM

ping

resistor added inline comments.
lib/CodeGen/Analysis.cpp
63 ↗(On Diff #17770)

s/indice/index/

Fix the comment.

resistor accepted this revision.Jan 13 2015, 9:12 PM
resistor added a reviewer: resistor.

LGTM.

This revision is now accepted and ready to land.Jan 13 2015, 9:12 PM
This revision was automatically updated to reflect the committed changes.