[PATCH] D63804: [PowerPC] Implement the areMemAccessesTriviallyDisjoint hook

Qing Shan Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 25 20:37:46 PDT 2019


steven.zhang created this revision.
steven.zhang added reviewers: jsji, nemanjai, hfinkel, kbarton.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

This hook it is trying to tell, even without aliasing information, that two MIs access different memory addresses. This function returns true if two MIs access different memory addresses and false otherwise.

After implemented this hook, we will model the memory dependency in the scheduling dependency graph more precise, and will have more opportunity to reorder the load/stores, as they didn't have the dependency at some condition.

There is no perf impact for spec2017 with this patch.


https://reviews.llvm.org/D63804

Files:
  llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
  llvm/lib/Target/PowerPC/PPCInstrInfo.h
  llvm/test/CodeGen/PowerPC/2008-10-28-f128-i32.ll
  llvm/test/CodeGen/PowerPC/extract-and-store.ll
  llvm/test/CodeGen/PowerPC/f128-aggregates.ll
  llvm/test/CodeGen/PowerPC/legalize-vaarg.ll
  llvm/test/CodeGen/PowerPC/ppc32-skip-regs.ll
  llvm/test/CodeGen/PowerPC/scheduling-mem-dependency.ll
  llvm/test/CodeGen/PowerPC/varargs.ll
  llvm/test/CodeGen/PowerPC/vec-min-max.ll
  llvm/test/CodeGen/PowerPC/vsx.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63804.206577.patch
Type: text/x-patch
Size: 25327 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190626/275f8b0c/attachment.bin>


More information about the llvm-commits mailing list