[llvm-dev] load instruction erroneously removed by GVN

Caldarale, Charles R via llvm-dev llvm-dev at lists.llvm.org
Fri Aug 7 04:53:48 PDT 2015


> From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org]
> On Behalf Of Mikael Holmén via llvm-dev
> Subject: [llvm-dev] load instruction erroneously removed by GVN

> But between the load and the alloca there is also
>    call fastcc void @format_long(i16* %_tmp30, i16 10, i32 10), !dbg !22
> which will use %_tmp30 to write in the alloca'd buffer.

> Shoulnd't MemoryDependenceAnalysis::getDependency rather return the call?

Depends.  What is the exact declaration of format_long?

 - Chuck



More information about the llvm-dev mailing list