[PATCH] D102615: [LoopDeletion] Break backedge if we can prove that the loop is exited on 1st iteration
    Ulrich Weigand via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon May 31 09:06:01 PDT 2021
    
    
  
uweigand added a comment.
In D102615#2789611 <https://reviews.llvm.org/D102615#2789611>, @mkazantsev wrote:
> Oh I see... That's nasty. In this case, could you please help me to reproduce it? I wasn't able to find the sources of this test in LLVM repository. IR dump before Loop Deletion would work too.
This is part of the llvm-test-suite repository.  The code for the interp function is here:
https://github.com/llvm/llvm-test-suite/blob/main/MultiSource/Benchmarks/MallocBench/gs/interp.c#L180
I notice that this has a weird "loop" constructed from a switch statement and various gotos, maybe this isn't handled correctly?
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102615/new/
https://reviews.llvm.org/D102615
    
    
More information about the llvm-commits
mailing list