[XRay] Support multiple return instructions in a single basic block
authorDean Michael Berris <dberris@google.com>
Wed, 31 Aug 2016 05:20:08 +0000 (05:20 +0000)
committerDean Michael Berris <dberris@google.com>
Wed, 31 Aug 2016 05:20:08 +0000 (05:20 +0000)
commit047669f18c7bc8d0572fe207874f3cc2a4f31b9a
tree7755bb54daacc8b8197025e1db0ac2739b54cee9
parenta90e51e10682e6c425364fea4ae9c154292ecf7b
[XRay] Support multiple return instructions in a single basic block

Add a .mir test to catch this case, and fix the xray-instrumentation
pass to handle it appropriately.

llvm-svn: 280192
llvm/lib/CodeGen/XRayInstrumentation.cpp
llvm/test/CodeGen/X86/xray-attribute-instrumentation.ll
llvm/test/CodeGen/X86/xray-multiplerets-in-blocks.mir [new file with mode: 0644]