[llvm-commits] CVS: llvm/include/llvm/iMemory.h

Chris Lattner lattner at cs.uiuc.edu
Tue Sep 9 13:17:02 PDT 2003


Changes in directory llvm/include/llvm:

iMemory.h updated: 1.39 -> 1.40

---
Log message:

Fix bug: InstCombine/2003-09-09-VolatileLoadElim.ll
Loads "mayWriteToMemory" if they are volatile


---
Diffs of the changes:

Index: llvm/include/llvm/iMemory.h
diff -u llvm/include/llvm/iMemory.h:1.39 llvm/include/llvm/iMemory.h:1.40
--- llvm/include/llvm/iMemory.h:1.39	Mon Sep  8 12:45:59 2003
+++ llvm/include/llvm/iMemory.h	Tue Sep  9 13:16:08 2003
@@ -159,6 +159,8 @@
 
   virtual Instruction *clone() const { return new LoadInst(*this); }
 
+  virtual bool mayWriteToMemory() const { return isVolatile(); }
+
   Value *getPointerOperand() { return getOperand(0); }
   const Value *getPointerOperand() const { return getOperand(0); }
   static unsigned getPointerOperandIndex() { return 0U; }





More information about the llvm-commits mailing list