[PATCH] D19245: [SimplifyCFG] Fold `llvm.guard(false)` to unreachable
Sanjoy Das via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 18 15:54:50 PDT 2016
sanjoy created this revision.
sanjoy added reviewers: hfinkel, pcc.
sanjoy added a subscriber: llvm-commits.
Herald added a subscriber: mcrosier.
`llvm.guard(false)` always bails out of the current compilation unit, so
we can prune any control flow following it.
Note: earlier I had submitted an incorrect version of this change as
D19188.
http://reviews.llvm.org/D19245
Files:
include/llvm/Transforms/Utils/Local.h
lib/Transforms/Utils/Local.cpp
test/Transforms/SimplifyCFG/guards.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19245.54135.patch
Type: text/x-patch
Size: 6632 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160418/1583e26f/attachment.bin>
More information about the llvm-commits
mailing list