[PATCH] D17729: [TargetInstrInfo] Add TargetInstrInfo interface isProfitableToBranch.
Balaram Makam via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 29 12:42:34 PST 2016
bmakam created this revision.
bmakam added reviewers: mcrosier, apazos.
bmakam added a subscriber: llvm-commits.
Herald added subscribers: mcrosier, aemerson.
Add TargetInstrInfo::isProfitableToBranch and implement for AArch64. This
implements heuristics to determine if it is profitable to branch from a
dominating head block that is terminated by the conditional branch into the compare
block that contains the compare instruction and the conditional branch.
AArch64ConditionalCompares pass uses this heuristics to decide on merging the compare
block into the head block.
http://reviews.llvm.org/D17729
Files:
include/llvm/Target/TargetInstrInfo.h
lib/Target/AArch64/AArch64ConditionalCompares.cpp
lib/Target/AArch64/AArch64InstrInfo.cpp
lib/Target/AArch64/AArch64InstrInfo.h
test/CodeGen/AArch64/aarch64-branch-heuristics.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17729.49407.patch
Type: text/x-patch
Size: 10935 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160229/7f3fa3a4/attachment.bin>
More information about the llvm-commits
mailing list