[llvm-commits] [llvm] r74401 - in /llvm/trunk: include/llvm/Analysis/LoopDependenceAnalysis.h lib/Analysis/LoopDependenceAnalysis.cpp

Devang Patel devang.patel at gmail.com
Mon Jun 29 09:28:29 PDT 2009


Andreas,

On Sat, Jun 27, 2009 at 5:21 PM, Andreas Bolka<a at bolka.at> wrote:
> +
> +static inline bool isMemRefInstr(const Value *I) {
> +  return isa<LoadInst>(I) || isa<StoreInst>(I);
> +}
> +

Pl. use Instruction::mayWriteToMemory() and
Instruction::mayReadFromMemory() to check memory reference.
-
Devang




More information about the llvm-commits mailing list