[PATCH] D34458: [TTI] Refine the cost of EXT in getUserCost()
Haicheng Wu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 21 09:12:24 PDT 2017
haicheng created this revision.
Herald added subscribers: kristof.beyls, eraman, javed.absar, aemerson.
Now, getUserCost() only checks the src and dst types of EXT to decide it is free or not. This change first checks the types, then calls isExtFreeImpl(), and check if EXT can form ExtLoad at last. Currently, only AArch64 has customized implementation of isExtFreeImpl() to check if EXT can be folded into its use. This patch just moves code around and calls existing APIs.
Repository:
rL LLVM
https://reviews.llvm.org/D34458
Files:
include/llvm/Analysis/TargetTransformInfo.h
include/llvm/Analysis/TargetTransformInfoImpl.h
include/llvm/CodeGen/BasicTTIImpl.h
include/llvm/Target/TargetLowering.h
lib/Analysis/TargetTransformInfo.cpp
lib/CodeGen/CodeGenPrepare.cpp
test/Transforms/Inline/AArch64/ext.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34458.103394.patch
Type: text/x-patch
Size: 11559 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170621/473ae7da/attachment.bin>
More information about the llvm-commits
mailing list