summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExpr.cpp
diff options
context:
space:
mode:
authorJun Bum Lim <junbuml@codeaurora.org>2016-12-16 20:38:39 +0000
committerJun Bum Lim <junbuml@codeaurora.org>2016-12-16 20:38:39 +0000
commit90b6b5074af4a9626bdd79d11193bdbcb7e58d94 (patch)
tree2c51083345fbe87c2f3ae469754c95c05b2f7c89 /clang/lib/Sema/SemaExpr.cpp
parent007572706b34a3b1579a27d6e506d3a2547d45bc (diff)
downloadbcm5719-llvm-90b6b5074af4a9626bdd79d11193bdbcb7e58d94.tar.gz
bcm5719-llvm-90b6b5074af4a9626bdd79d11193bdbcb7e58d94.zip
[CodeGenPrep] Skip merging empty case blocks
This is recommit of r287553 after fixing the invalid loop info after eliminating an empty block and unit test failures in AVR and WebAssembly : Summary: Merging an empty case block into the header block of switch could cause ISel to add COPY instructions in the header of switch, instead of the case block, if the case block is used as an incoming block of a PHI. This could potentially increase dynamic instructions, especially when the switch is in a loop. I added a test case which was reduced from the benchmark I was targetting. Reviewers: t.p.northover, mcrosier, manmanren, wmi, joerg, davidxl Subscribers: joerg, qcolombet, danielcdh, hfinkel, mcrosier, llvm-commits Differential Revision: https://reviews.llvm.org/D22696 llvm-svn: 289988
Diffstat (limited to 'clang/lib/Sema/SemaExpr.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud