[llvm-dev] UD and DU chains for LLVM IR before running mem2reg

David Chisnall via llvm-dev llvm-dev at lists.llvm.org
Thu May 25 04:58:16 PDT 2017


On 25 May 2017, at 12:54, Jajoo, Malhar via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> The use-def and def-use chains provided by llvm::Value class ,
> would they work for IR that has not been optimized by the "mem2reg" pass ?
> ( ie, IR code that contains memory interactions and is not in SSA form yet )

It depends on what you mean by ‘work’.  They will exist and will link instructions, but all loads and stores to an alloca will appear as uses of that alloca.

David



More information about the llvm-dev mailing list