summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-01-23 22:04:55 +0000
committerChris Lattner <sabre@nondot.org>2011-01-23 22:04:55 +0000
commita960725d18fd8686c517aecf25584a3c5a4da9d6 (patch)
tree2bea6734b3a93421203f50f8f7a82f1a80487707 /clang/lib/CodeGen/CodeGenModule.cpp
parente30621b62692622bdf8a5df7e59462efd4e69d58 (diff)
downloadbcm5719-llvm-a960725d18fd8686c517aecf25584a3c5a4da9d6.tar.gz
bcm5719-llvm-a960725d18fd8686c517aecf25584a3c5a4da9d6.zip
Enhance SRoA to promote allocas that are used by selects in some
common cases. This triggers a surprising number of times in SPEC2K6 because min/max idioms end up doing this. For example, code from the STL ends up looking like this to SRoA: %202 = load i64* %__old_size, align 8, !tbaa !3 %203 = load i64* %__old_size, align 8, !tbaa !3 %204 = load i64* %__n, align 8, !tbaa !3 %205 = icmp ult i64 %203, %204 %storemerge.i = select i1 %205, i64* %__n, i64* %__old_size %206 = load i64* %storemerge.i, align 8, !tbaa !3 We can now promote both the __n and the __old_size allocas. This addresses another chunk of rdar://7339113, poor codegen on stringswitch. llvm-svn: 124088
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud