rename a function to indicate that it checks for profitability as well
authorChris Lattner <sabre@nondot.org>
Sat, 21 Feb 2009 00:46:50 +0000 (00:46 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 21 Feb 2009 00:46:50 +0000 (00:46 +0000)
commit36d3e326dfcc3f2ff002e5e76178effb785d006d
tree5efa0cd0f749f9eb95378aa309ea59eb07d28e56
parent3d2445f5d97ab615ecb8b26d8c5440a6d774c28d
rename a function to indicate that it checks for profitability as well
as legality.  Make load sinking and gep sinking more careful: we only
do it when it won't pessimize loads from the stack.  This has the added
benefit of not producing code that is unanalyzable to SROA.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65209 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/2009-02-20-InstCombine-SROA.ll [new file with mode: 0644]