mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-28 06:24:57 +00:00
Introduce a new array_pod_sort function and switch LSR to use it
instead of std::sort. This shrinks the release-asserts LSR.o file by 1100 bytes of code on my system. We should start using array_pod_sort where possible. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60335 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -243,7 +243,7 @@ void LoopStrengthReduce::DeleteTriviallyDeadInstructions() {
|
||||
// Sort the deadinsts list so that we can trivially eliminate duplicates as we
|
||||
// go. The code below never adds a non-dead instruction to the worklist, but
|
||||
// callers may not be so careful.
|
||||
std::sort(DeadInsts.begin(), DeadInsts.end());
|
||||
array_pod_sort(DeadInsts.begin(), DeadInsts.end());
|
||||
|
||||
// Drop duplicate instructions and those with uses.
|
||||
for (unsigned i = 0, e = DeadInsts.size()-1; i < e; ++i) {
|
||||
|
Reference in New Issue
Block a user