aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/FileCheck/FileCheck.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2020-08-30 10:51:28 -0400
committerSanjay Patel <spatel@rotateright.com>2020-08-30 10:55:45 -0400
commit716e35a0cf53e85a5fddc7ff86b79a751b1b2040 (patch)
tree74ae330a14bcfb0aae375ec4968367d547acc4ed /llvm/lib/FileCheck/FileCheck.cpp
parent7692cb1a6fd1b3978855f637d4f09da035085c90 (diff)
downloadllvm-716e35a0cf53e85a5fddc7ff86b79a751b1b2040.zip
llvm-716e35a0cf53e85a5fddc7ff86b79a751b1b2040.tar.gz
llvm-716e35a0cf53e85a5fddc7ff86b79a751b1b2040.tar.bz2
[DAGCombiner] skip reciprocal divisor optimization for x/sqrt(x)
In general, we probably want to try the multi-use reciprocal transform before sqrt transforms, but x/sqrt(x) is a special-case because that will always reduce to plain sqrt(x) or an estimate. The AArch64 tests show that the transform is limited by TLI hook to patterns where there are 3 or more uses of the divisor. So this change can result in an extra division compared to what we had, but that's the intended behvior based on the current setting of that hook.
Diffstat (limited to 'llvm/lib/FileCheck/FileCheck.cpp')
0 files changed, 0 insertions, 0 deletions