Teach EarlyCSE to do trivial CSE of loads and read-only calls.
authorChris Lattner <sabre@nondot.org>
Mon, 3 Jan 2011 03:18:43 +0000 (03:18 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 3 Jan 2011 03:18:43 +0000 (03:18 +0000)
commit8e7f0d70c7dd3864126c746378a7b928d57f971f
tree869b2b51e3648bedb947e5093c660db2a9097144
parent152096275ad45bb13d5652f7019f48be5ccd67f8
Teach EarlyCSE to do trivial CSE of loads and read-only calls.

On 176.gcc, this catches 13090 loads and calls, and increases the
number of simple instructions CSE'd from 29658 to 36208.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122727 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/EarlyCSE.cpp
test/Transforms/EarlyCSE/basic.ll