[MachineCombiner] Fix for ICE bug 20598
[oota-llvm.git] / lib / Target / AArch64 / AArch64InstrInfo.cpp
index df883d35fa18be09ad7ba9616a7b5b857a449e13..fcf04dd2c04e680e0aa0950c87ea30297d95c9ba 100644 (file)
@@ -2293,7 +2293,8 @@ static bool canCombineWithMUL(MachineBasicBlock &MBB, MachineOperand &MO,
     return false;
 
   // Must only used by the user we combine with.
-  if (!MRI.hasOneNonDBGUse(MI->getOperand(0).getReg()))
+  // FIXME: handle the case of DBG uses gracefully
+  if (!MRI.hasOneUse(MI->getOperand(0).getReg()))
     return false;
 
   return true;