[PATCH] D123559: [DA] Refactor with a better API (NFC)
    Florian Hahn via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Apr 12 01:32:17 PDT 2022
    
    
  
fhahn added a comment.
In D123559#3444477 <https://reviews.llvm.org/D123559#3444477>, @Meinersbur wrote:
> Note that his is not strictly NFC, `stripPointerCasts` also strips zero GEPs and calls with `returned` attribute, ie. strictly more powerful. For instance:
>
>   i32 = getelementpointer i32* %a, i32 0
>   %bitcast = bitcast i32* %0 to i64*
>
> `stripPointerCasts` on %bitcast would return %a.
Would be good to add a test case for that?
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D123559/new/
https://reviews.llvm.org/D123559
    
    
More information about the llvm-commits
mailing list