r600g/llvm: Tell the code emitter to ignore KILL and BUNDLE
authorTom Stellard <thomas.stellard@amd.com>
Thu, 19 Apr 2012 14:12:05 +0000 (10:12 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 23 Apr 2012 13:34:04 +0000 (09:34 -0400)
src/gallium/drivers/radeon/R600CodeEmitter.cpp

index d5f82cf69a1db9fae4240da2820adfeed95b84d8..4d9ca4fab12342f875ff314b97c5cf18f4c30d84 100644 (file)
@@ -186,7 +186,9 @@ bool R600CodeEmitter::runOnMachineFunction(MachineFunction &MF) {
               emitALUInstr(MI);
             }
             isReduction = false;
-          } else if (MI.getOpcode() == AMDIL::RETURN) {
+          } else if (MI.getOpcode() == AMDIL::RETURN ||
+                     MI.getOpcode() == AMDIL::BUNDLE ||
+                     MI.getOpcode() == AMDIL::KILL) {
             continue;
           } else {
             switch(MI.getOpcode()) {