No, IDEFs shouldn't be JITed
authorAndrew Lenharth <andrewl@lenharth.org>
Thu, 4 Aug 2005 15:32:36 +0000 (15:32 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Thu, 4 Aug 2005 15:32:36 +0000 (15:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22648 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Alpha/AlphaCodeEmitter.cpp
lib/Target/Alpha/AlphaJITInfo.cpp

index a4e9e03d91f30569e44f7158106da83138a8fe21..6b4c3a2bf50dd86f35f7458c250677cbd1d8bea4 100644 (file)
@@ -89,9 +89,11 @@ bool AlphaCodeEmitter::runOnMachineFunction(MachineFunction &MF) {
   for (unsigned i = 0, e = BBRefs.size(); i != e; ++i) {
     unsigned* Location = (unsigned*)BasicBlockAddrs[BBRefs[i].first];
     unsigned* Ref = (unsigned*)BBRefs[i].second;
-    intptr_t BranchTargetDisp = (((unsigned char*)Location  - (unsigned char*)Ref) >> 2) - 1;
+    intptr_t BranchTargetDisp = 
+      (((unsigned char*)Location  - (unsigned char*)Ref) >> 2) - 1;
     DEBUG(std::cerr << "Fixup @ " << (void*)Ref << " to " << (void*)Location
-          << " Disp " << BranchTargetDisp << " using " <<  (BranchTargetDisp & ((1 << 22)-1)) << "\n");
+          << " Disp " << BranchTargetDisp 
+          << " using " <<  (BranchTargetDisp & ((1 << 22)-1)) << "\n");
     *Ref |= (BranchTargetDisp & ((1 << 21)-1));
   }
   BBRefs.clear();
@@ -115,6 +117,7 @@ void AlphaCodeEmitter::emitBasicBlock(MachineBasicBlock &MBB) {
     case Alpha::ALTENT:
     case Alpha::PCLABEL:
     case Alpha::MEMLABEL:
+    case Alpha::IDEF:
       break; //skip these
     }
   }
index c8b7a6752aad2191725d6dac44f86d9e94a96885..e0e7a07289707f91bfcc6e5d538845a1302cb5de 100644 (file)
@@ -64,7 +64,7 @@ static void EmitBranchToAt(void *At, void *To) {
   for (int x = 1; x <= 8; ++x) {
     AtI[2*x - 1] = BUILD_SLLi(27,27,8);
     unsigned d = (Fn >> (64 - 8 * x)) & 0x00FF;
-    DEBUG(std::cerr << "outputing " << hex << d << dec << "\n");
+    //    DEBUG(std::cerr << "outputing " << hex << d << dec << "\n");
     AtI[2*x] = BUILD_ORi(27, 27, d);
   }
   AtI[17] = BUILD_JMP(31,27,0); //jump, preserving ra, and setting pv