[PATCH] D67281: [AArch64][SimplifyCFG] Add additional cost for instructions in mergeConditionalStoreToAddress
Pavel Kosov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 10 00:08:46 PDT 2019
kpdev42 updated this revision to Diff 219480.
kpdev42 edited reviewers, added: lebedev.ri; removed: craig.topper, sanjoy.
kpdev42 added a comment.
Simplify test case. Relevant C code is:
typedef struct {
int * dummy;
void *proc;
} ptr_wrapper;
ptr_wrapper * fds;
int do_select(const unsigned long in,
unsigned long bit,
const unsigned long mask)
{
int retval = 0;
unsigned long res_in = 0;
for( ; bit != 0; bit <<= 1)
{
if (in & bit) {
res_in |= bit;
retval++;
fds->proc = NULL;
}
if (mask & 0x1) {
fds->proc = NULL;
}
}
return retval + res_in;
}
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67281/new/
https://reviews.llvm.org/D67281
Files:
llvm/test/Transforms/SimplifyCFG/AArch64/check-instr-cost-for-folding.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67281.219480.patch
Type: text/x-patch
Size: 7809 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190910/d577d470/attachment.bin>
More information about the llvm-commits
mailing list