[PATCH] D62966: [ARM] Add fp16 addressing to isLegalT2AddressImmediate
Sam Parker via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 7 07:10:39 PDT 2019
samparker accepted this revision.
samparker added a comment.
This revision is now accepted and ready to land.
LGTM.
================
Comment at: llvm/test/Analysis/CostModel/ARM/gep.ll:329
+; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %a256 = getelementptr inbounds half, half* %a, i32 256
+; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %am255 = getelementptr inbounds half, half* %a, i32 -255
+; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %am256 = getelementptr inbounds half, half* %a, i32 -256
----------------
dmgreen wrote:
> samparker wrote:
> > Could you add testing for around an offset of +/- 510?
> These are gep offsets so all "number of units", not "bytes". Is that what you meant? It caught me out originally.
>
> (Yes, this makes testing unaligned access harder, like an byte offset of 1, not 2)
Ah, yeah!
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62966/new/
https://reviews.llvm.org/D62966
More information about the llvm-commits
mailing list