[PATCH] D34396: Adding code padding for performance stability - first policy (BranchesWithSameTargetAvoidancePolicy)

Omer Paparo Bivas via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 12 06:49:16 PDT 2017


opaparo updated this revision to Diff 106198.
opaparo added a comment.

Removed unwanted dependencies introduces in my previous patch: MC layer no longer depends on CodeGen, Core or Target. This was achieved by introducing a new structure named MCCodePaddingContext that is being created by AsmPrinter and passed on to the MC layer (all the way to MCCodePadder). This replaces the direct use of TargetMachine, MachineBasicBlock, MachineFunction and MachineLoopInfo by the MCCodePadder.
Note: This time I used "svn diff -x -U999999" to create the patch, so comparison between this patch and the previous one may prove to be challenging (This had to be done for future work and review).


https://reviews.llvm.org/D34396

Files:
  lib/Target/X86/MCTargetDesc/CMakeLists.txt
  lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
  lib/Target/X86/MCTargetDesc/X86MCCodePadder.cpp
  lib/Target/X86/MCTargetDesc/X86MCCodePadder.h
  lib\Target\X86\MCTargetDesc\X86MCCodePadder.cpp
  lib\Target\X86\MCTargetDesc\X86MCCodePadder.h
  test/CodeGen/X86/perf_nops.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34396.106198.patch
Type: text/x-patch
Size: 24346 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170712/8be5f63e/attachment.bin>


More information about the llvm-commits mailing list