[PartiallyInlineLibCalls][x86] add TTI hook to allow sqrt inlining to depend on arg...
authorSanjay Patel <spatel@rotateright.com>
Mon, 27 Nov 2017 21:15:43 +0000 (21:15 +0000)
committerSanjay Patel <spatel@rotateright.com>
Mon, 27 Nov 2017 21:15:43 +0000 (21:15 +0000)
commit0de1a4bc2d2632ceb42a022c52195de323740e73
tree2d93fe4f2d0f399395696ba1cce0f74b01fe7c09
parent7c3a89231cbb560050062dd904149efb77263e9f
[PartiallyInlineLibCalls][x86] add TTI hook to allow sqrt inlining to depend on arg rather than result

This should fix PR31455:
https://bugs.llvm.org/show_bug.cgi?id=31455

Differential Revision: https://reviews.llvm.org/D28314

llvm-svn: 319094
llvm/include/llvm/Analysis/TargetTransformInfo.h
llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
llvm/include/llvm/CodeGen/BasicTTIImpl.h
llvm/lib/Analysis/TargetTransformInfo.cpp
llvm/lib/Target/X86/X86TargetTransformInfo.cpp
llvm/lib/Target/X86/X86TargetTransformInfo.h
llvm/lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp
llvm/test/CodeGen/X86/sqrt-partial.ll
llvm/test/Transforms/PartiallyInlineLibCalls/X86/good-prototype.ll