This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Refactoring findMatchingStore() in aarch64-ldst-opt; NFC
ClosedPublic

Authored by mcrosier on Feb 10 2016, 10:50 AM.

Details

Summary

This change makes findMatchingStore() follow the same coding style introduced in r260275.

Diff Detail

Repository
rL LLVM

Event Timeline

mcrosier updated this revision to Diff 47487.Feb 10 2016, 10:50 AM
mcrosier retitled this revision from to [AArch64] Fix a bug in the findMatchingStore logic..
mcrosier updated this object.
mcrosier added reviewers: junbuml, gberry.
mcrosier added subscribers: mssimpso, bmakam, haicheng.
junbuml accepted this revision.Feb 10 2016, 12:09 PM
junbuml edited edge metadata.

Since the iterator (MBBI) decreased first in the for loop, this code already handle the case when the matching store is the first instruction in the block. However, this change makes the loop follow the same coding style introduced in r260275. I will commit it after running correct tests.

This revision is now accepted and ready to land.Feb 10 2016, 12:09 PM

Thanks for the clarification, Jun. Sounds good.

Also, my testing indicated there was no changes in Spec200X, which should be the case given the patch is a NFC... (despite my misunderstanding).

junbuml retitled this revision from [AArch64] Fix a bug in the findMatchingStore logic. to [AArch64] Refactoring findMatchingStore() in aarch64-ldst-opt; NCF.Feb 10 2016, 12:28 PM
junbuml updated this object.
junbuml edited edge metadata.
junbuml retitled this revision from [AArch64] Refactoring findMatchingStore() in aarch64-ldst-opt; NCF to [AArch64] Refactoring findMatchingStore() in aarch64-ldst-opt; NFC.
This revision was automatically updated to reflect the committed changes.