[PATCH] Update optimization passes to handle inalloca arguments

Reid Kleckner rnk at google.com
Thu Dec 19 14:43:18 PST 2013


I searched Transforms/ and Analysis/ for 'ByVal' and updated those call
sites to check for inalloca if appropriate.

I added tests for any change that would allow an optimization to fire on
inalloca.

http://llvm-reviews.chandlerc.com/D2449

Files:
  include/llvm/IR/Argument.h
  include/llvm/IR/Instructions.h
  include/llvm/Support/CallSite.h
  lib/Analysis/MemoryBuiltins.cpp
  lib/Analysis/ValueTracking.cpp
  lib/IR/Function.cpp
  lib/IR/Instructions.cpp
  lib/Transforms/IPO/ArgumentPromotion.cpp
  lib/Transforms/IPO/DeadArgumentElimination.cpp
  lib/Transforms/IPO/FunctionAttrs.cpp
  lib/Transforms/IPO/IPConstantPropagation.cpp
  lib/Transforms/InstCombine/InstCombineCalls.cpp
  lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
  lib/Transforms/ObjCARC/ObjCARC.h
  lib/Transforms/Scalar/DeadStoreElimination.cpp
  test/Transforms/ArgumentPromotion/inalloca-2.ll
  test/Transforms/ArgumentPromotion/inalloca.ll
  test/Transforms/DeadStoreElimination/simple.ll
  test/Transforms/FunctionAttrs/readattrs.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2449.1.patch
Type: text/x-patch
Size: 16508 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131219/35eab750/attachment.bin>


More information about the llvm-commits mailing list