[PATCH] D93054: [ARM] Add bank conflict hazarding
David Penry via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 10 11:19:54 PST 2020
dpenry created this revision.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
dpenry requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Adds ARMBankConflictHazardRecognizer. This hazard recognizer
looks for a few situations where the same base pointer is used and
then checks whether the offsets lead to a bank conflict. Two
parameters are also added to permit overriding of the target
assumptions:
arm-data-bank-mask=<int> - Mask of bits which are to be checked for
conflicts. If all these bits are equal in
the offsets, there is a conflict.
arm-assume-itcm-bankconflict=<bool> - Assume that there will be bank
conflicts on any loads to a constant
pool.
This hazard recognizer is enabled for Cortex-M7, where the Technical Reference
Manual states that there are two DTCM banks banked using bit 2 and one ITCM
bank.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D93054
Files:
llvm/lib/Target/ARM/ARM.td
llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
llvm/lib/Target/ARM/ARMBaseInstrInfo.h
llvm/lib/Target/ARM/ARMHazardRecognizer.cpp
llvm/lib/Target/ARM/ARMHazardRecognizer.h
llvm/lib/Target/ARM/ARMSubtarget.cpp
llvm/lib/Target/ARM/ARMSubtarget.h
llvm/test/CodeGen/Thumb2/schedm7-hazard.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93054.310963.patch
Type: text/x-patch
Size: 14650 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201210/9dc7eec0/attachment.bin>
More information about the llvm-commits
mailing list