[PATCH] D13082: [FunctionAttrs] Conservatively handle operand bundles.

Sanjoy Das via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 22 18:36:00 PDT 2015


sanjoy created this revision.
sanjoy added reviewers: majnemer, chandlerc, nlewycky, reames.
sanjoy added a subscriber: llvm-commits.
sanjoy added a dependency: D12457: [Bitcode][Asm] Teach LLVM to read and write operand bundles..

This teaches the FunctionAttrs pass to handle operand bundles
conservatively.  All calls / invokes with operand bundles are
currently considered to be reading from and writing to the entire
heap.

I've also added a test case PruneEH to show that a call with operand
bundles inherits its callee's behavior with respect to unwinding -- if
the callee is `nounwind`, the call is `nounwind` too.

Depends on D12457.

http://reviews.llvm.org/D13082

Files:
  include/llvm/IR/CallSite.h
  include/llvm/IR/InstrTypes.h
  include/llvm/IR/Instructions.h
  lib/Analysis/CaptureTracking.cpp
  lib/IR/Instructions.cpp
  lib/Transforms/IPO/FunctionAttrs.cpp
  test/Transforms/FunctionAttrs/operand-bundles.ll
  test/Transforms/PruneEH/operand-bundles.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13082.35450.patch
Type: text/x-patch
Size: 8708 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150923/35451afe/attachment.bin>


More information about the llvm-commits mailing list