]> granicus.if.org Git - llvm/commit
LowerTypeTests: Generate simpler IR for br(llvm.type.test, then, else).
authorPeter Collingbourne <peter@pcc.me.uk>
Wed, 7 Jun 2017 15:49:14 +0000 (15:49 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Wed, 7 Jun 2017 15:49:14 +0000 (15:49 +0000)
commit619317ee76fc0870d47da550288870a2b146595e
tree08da0b7b95f3225c020c3e2d3fe0bb4e2b60d7eb
parentf16db3ca21a2f2e5211097a090a9ecb927c3f3c9
LowerTypeTests: Generate simpler IR for br(llvm.type.test, then, else).

This makes it so that the code quality for CFI checks when compiling
with -O2 and linking with --lto-O0 is similar to that of the rest of
the code.

Reduces the size of a chrome binary built with -O2/--lto-O0 by
about 750KB.

Differential Revision: https://reviews.llvm.org/D33925

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304921 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/LowerTypeTests.cpp
test/Transforms/LowerTypeTests/simplify.ll [new file with mode: 0644]