Roll r123609 back in with two changes that fix test failures with expensive
authorCameron Zwarich <zwarich@apple.com>
Mon, 17 Jan 2011 17:38:41 +0000 (17:38 +0000)
committerCameron Zwarich <zwarich@apple.com>
Mon, 17 Jan 2011 17:38:41 +0000 (17:38 +0000)
commit419e8a62997987e0509efe721c1ea81ac29f09f3
treecaefd2fe04ddd2185adfdece3eddb39cff9ce4bd
parent5860c6c09e58c3f6d19cee4458320c42a5d17298
Roll r123609 back in with two changes that fix test failures with expensive
checks enabled:

1) Use '<' to compare integers in a comparison function rather than '<='.

2) Use the uniqued set DefBlocks rather than Info.DefiningBlocks to initialize
the priority queue.

The speedup of scalarrepl on test-suite + SPEC2000 + SPEC2006 is a bit less, at
just under 16% rather than 17%.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123662 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Utils/PromoteMemToReg.h
lib/Transforms/Scalar/ScalarReplAggregates.cpp
lib/Transforms/Utils/Mem2Reg.cpp
lib/Transforms/Utils/PromoteMemoryToRegister.cpp