[PATCH] D49924: [DAGCombiner] transform sub-of-shifted-signbit to add
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 30 12:56:22 PDT 2018
efriedma added a comment.
Yes, the AArch64 issue is that we decide to use add-with-immediate rather than sub-with-shifted-operand. Which form is better probably depends on the CPU and the context: by itself, on an A57 you're trading an expensive instruction for cheaper instruction, but if the immediate can be hoisted out of a hot loop the expensive instruction might be cheaper than two cheap instructions. But I think the sub-with-shifted-operand might be cheaper on other CPUs?
Anyway, that's basically independent of this patch, so don't worry about it.
https://reviews.llvm.org/D49924
More information about the llvm-commits
mailing list