ARM64: Combine shifts and uses from different basic block to bit-extract instruction
[oota-llvm.git] / lib / CodeGen / MachineCSE.cpp
index fd153d8c448c6a785bda42f8582593ffa418b178..9c3bcc444c44aa821fd1637b32b0fa7f51f0e94f 100644 (file)
@@ -659,6 +659,9 @@ bool MachineCSE::PerformCSE(MachineDomTreeNode *Node) {
 }
 
 bool MachineCSE::runOnMachineFunction(MachineFunction &MF) {
+  if (skipOptnoneFunction(*MF.getFunction()))
+    return false;
+
   TII = MF.getTarget().getInstrInfo();
   TRI = MF.getTarget().getRegisterInfo();
   MRI = &MF.getRegInfo();