[llvm-commits] patch: preserve branch to unreachable until codegenprep time

Nick Lewycky nicholas at mxc.ca
Sun Oct 18 00:16:25 PDT 2009


This patch moves the code that optimizes "branch to unreachable" from 
SimplifyCFG to CodeGenPrep. Most of this patch is just updating the unit 
tests that use unreachable everywhere. I've done my best to preserve the 
intent of the tests.

There's a tiny tweak to InlineCost but I think more work there is 
deserved. I'd rather wait until this lands before twiddling that further.

This implements http://nondot.org/sabre/LLVMNotes/BuiltinUnreachable.txt

Please review!

Nick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: preserve-unreachable.patch
Type: text/x-patch
Size: 19878 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20091018/3107d140/attachment.bin>


More information about the llvm-commits mailing list