[PATCH] D38603: Directly return promoted direct call instead of rely on stripPointerCast.
    Dehao Chen via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Oct  5 14:50:43 PDT 2017
    
    
  
danielcdh created this revision.
Herald added a subscriber: sanjoy.
stripPointerCast is not reliably returning the value that's being type-casted. Instead it may look further at function attributes to further propagate the value. Instead of relying on stripPOintercast, the more reliable solution is to directly use the pointer to the promoted direct call.
https://reviews.llvm.org/D38603
Files:
  lib/Transforms/IPO/SampleProfile.cpp
  lib/Transforms/Instrumentation/IndirectCallPromotion.cpp
  test/Transforms/SampleProfile/Inputs/indirect-call.prof
  test/Transforms/SampleProfile/indirect-call.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38603.117903.patch
Type: text/x-patch
Size: 5617 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171005/1fa71cc1/attachment.bin>
    
    
More information about the llvm-commits
mailing list