fix TLI's combineRepeatedFPDivisors interface to return the minimum user threshold
authorSanjay Patel <spatel@rotateright.com>
Tue, 28 Jul 2015 23:05:48 +0000 (23:05 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 28 Jul 2015 23:05:48 +0000 (23:05 +0000)
commit6ea347b66fd299bdcc62d8917aa8ef490c34a344
tree158a1331c9cbe1996371fa689d463d5a38105bdc
parentba90cee0f19a1e7614c472b4571880c20936f22f
fix TLI's combineRepeatedFPDivisors interface to return the minimum user threshold

This fix was suggested as part of D11345 and is part of fixing PR24141.

With this change, we can avoid walking the uses of a divisor node if the target
doesn't want the combineRepeatedFPDivisors transform in the first place.

There is no NFC-intended other than that.

Differential Revision: http://reviews.llvm.org/D11531

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243498 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetLowering.h
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/Target/AArch64/AArch64ISelLowering.cpp
lib/Target/AArch64/AArch64ISelLowering.h
lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/PowerPC/PPCISelLowering.h
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86ISelLowering.h