]> granicus.if.org Git - llvm/commit
CodeGenPrep: add separate hook say when GEPs should be used for sinking. NFCI.
authorTim Northover <tnorthover@apple.com>
Thu, 12 Sep 2019 10:21:00 +0000 (10:21 +0000)
committerTim Northover <tnorthover@apple.com>
Thu, 12 Sep 2019 10:21:00 +0000 (10:21 +0000)
commit03dc1837d35607954a28554328df2082872efb7b
tree551b512702e695fd0276cf171383a69cc6a5c5ff
parentd6c677fa07aed9d5727350bb2414e398584b465f
CodeGenPrep: add separate hook say when GEPs should be used for sinking. NFCI.

Up to now, we've decided whether to sink address calculations using GEPs or
normal arithmetic based on the useAA hook, but there are other reasons GEPs
might be preferred. So this patch splits the two questions, with a default
implementation falling back to useAA.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371721 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/TargetSubtargetInfo.h
lib/CodeGen/CodeGenPrepare.cpp