[llvm-commits] CVS: llvm/lib/CodeGen/MachineFunction.cpp

Brian Gaeke gaeke at cs.uiuc.edu
Mon Mar 1 00:44:09 PST 2004


Changes in directory llvm/lib/CodeGen:

MachineFunction.cpp updated: 1.53 -> 1.54

---
Log message:

TargetCacheInfo has been removed; its only uses were to propagate a constant
(16) into certain areas of the SPARC V9 back-end. I'm fairly sure the US IIIi's
dcache has 32-byte lines, so I'm not sure where the 16 came from. However, in
the interest of not breaking things any more than they already are, I'm going
to leave the constant alone.


---
Diffs of the changes:  (+1 -2)

Index: llvm/lib/CodeGen/MachineFunction.cpp
diff -u llvm/lib/CodeGen/MachineFunction.cpp:1.53 llvm/lib/CodeGen/MachineFunction.cpp:1.54
--- llvm/lib/CodeGen/MachineFunction.cpp:1.53	Sun Feb 29 13:04:31 2004
+++ llvm/lib/CodeGen/MachineFunction.cpp	Mon Mar  1 00:43:28 2004
@@ -22,7 +22,6 @@
 #include "llvm/CodeGen/Passes.h"
 #include "llvm/Target/TargetMachine.h"
 #include "llvm/Target/TargetFrameInfo.h"
-#include "llvm/Target/TargetCacheInfo.h"
 #include "llvm/Function.h"
 #include "llvm/iOther.h"
 using namespace llvm;
@@ -273,7 +272,7 @@
 inline unsigned
 SizeToAlignment(unsigned size, const TargetMachine& target)
 {
-  unsigned short cacheLineSize = target.getCacheInfo().getCacheLineSize(1); 
+  const unsigned short cacheLineSize = 16;
   if (size > (unsigned) cacheLineSize / 2)
     return cacheLineSize;
   else





More information about the llvm-commits mailing list