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)
commit1dd15598cf6ca4338509c90ec2f93957ba3ee229
treec4d24325d9d450c5ed6d31434ed086ca6bc59b85
parentef5c196fb04820c808b70288d58a9eca423091b1
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

llvm-svn: 243498
llvm/include/llvm/Target/TargetLowering.h
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.h
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/lib/Target/PowerPC/PPCISelLowering.h
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/lib/Target/X86/X86ISelLowering.h