[llvm-commits] CVS: llvm/lib/Reoptimizer/TraceCache/InstrUtils.cpp

Anand Shukla ashukla at cs.uiuc.edu
Fri Feb 14 14:47:04 PST 2003


Changes in directory llvm/lib/Reoptimizer/TraceCache:

InstrUtils.cpp updated: 1.8 -> 1.9

---
Log message:

Changes to runtime framework

---
Diffs of the changes:

Index: llvm/lib/Reoptimizer/TraceCache/InstrUtils.cpp
diff -u llvm/lib/Reoptimizer/TraceCache/InstrUtils.cpp:1.8 llvm/lib/Reoptimizer/TraceCache/InstrUtils.cpp:1.9
--- llvm/lib/Reoptimizer/TraceCache/InstrUtils.cpp:1.8	Wed Jan 29 15:13:41 2003
+++ llvm/lib/Reoptimizer/TraceCache/InstrUtils.cpp	Fri Feb 14 14:46:11 2003
@@ -41,12 +41,14 @@
 } 
 
 
-bool isNonDepJump(unsigned int y){
-  return ((y & 0x01c00000) == 4194304);
+bool isNonDepJump(unsigned int y){//int + floating point
+  return ((y & 0xc1c00000) == 4194304 || (y & 0xc1c00000) == 20971520);
+  //  return ((y & 0x01c00000) == 4194304);
 }
 
-bool isDepJump(unsigned int y){
-  return ((y & 0x01c00000) == 8388608);
+bool isDepJump(unsigned int y){ //integer+floatingpoint
+  return ((y & 0xc1c00000) == 8388608 || (y & 0xc1c00000) == 25165824);
+  //return ((y & 0x01c00000) == 8388608);
 }
 
 uint64_t getNonDepJmpTarget(unsigned int y, uint64_t oldAdd){
@@ -165,6 +167,8 @@
 }
 
 void doFlush(uint64_t st_addr, uint64_t end_addr){
+  if(st_addr%8 != 0)
+    st_addr -=4;
   for(uint64_t i = st_addr; i<=end_addr; i+=8){
     asm("flush %0"::"r" (i));
   }





More information about the llvm-commits mailing list