[llvm-dev] mem2reg not working in this case?

Frank Winter via llvm-dev llvm-dev at lists.llvm.org
Fri Oct 29 09:56:42 PDT 2021

I can't get the alloca in attached function to be promoted to (a) register(s).

I try with

opt -mem2reg < module_eval0.ll

but the output is unchanged. Using LLVM 13 release.

Can anyone see why it's not working? Is this too complicated for mem2reg? The alloca is moved to the beginning.. is this the problem?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20211029/f192c13a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: module_eval0.ll
Type: application/octet-stream
Size: 2784 bytes
Desc: module_eval0.ll
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20211029/f192c13a/attachment.obj>

More information about the llvm-dev mailing list