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?
Frank
module_eval0.ll (2.72 KB)