[PATCH] D55373: [LSR] Generate formulae to enable more indexed accesses

Gil Rapaport via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 7 02:27:49 PST 2019


gilr added inline comments.


================
Comment at: lib/Target/ARM/ARMTargetTransformInfo.h:99
+      return false;
+    return ST->isMClass() && ST->isThumb2() && L->getNumBlocks() == 1;
+  }
----------------
samparker wrote:
> gilr wrote:
> > Is the single-block constraint due to CodeGen's single-block optimization scope? (If so, then IINM it's not target-specific)
> No, its not because of ISel restrictions or anything like that. It's because the transform is only likely to be useful is the address can be kept in the same register - which becomes increasingly less likely once multiple blocks are considered.
So both the code-size and single-block heuristics seem target-independent. Why not do this in LSR?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55373/new/

https://reviews.llvm.org/D55373





More information about the llvm-commits mailing list