[PATCH] D27841: [LLC][MIPS] Fix crash after enabling LLVM_ENABLE_EXPENSIVE_CHECKS
Nitesh Jain via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 4 01:45:27 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL290949: [LLC][MIPS] Fix crash after enabling LLVM_ENABLE_EXPENSIVE_CHECKS (authored by nitesh.jain).
Changed prior to commit:
https://reviews.llvm.org/D27841?vs=83017&id=83020#toc
Repository:
rL LLVM
https://reviews.llvm.org/D27841
Files:
llvm/trunk/lib/Target/Mips/MipsSEISelDAGToDAG.cpp
llvm/trunk/lib/Target/Mips/MipsSEISelDAGToDAG.h
Index: llvm/trunk/lib/Target/Mips/MipsSEISelDAGToDAG.cpp
===================================================================
--- llvm/trunk/lib/Target/Mips/MipsSEISelDAGToDAG.cpp
+++ llvm/trunk/lib/Target/Mips/MipsSEISelDAGToDAG.cpp
@@ -28,6 +28,7 @@
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Intrinsics.h"
#include "llvm/IR/Type.h"
+#include "llvm/IR/Dominators.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
@@ -43,6 +44,11 @@
return MipsDAGToDAGISel::runOnMachineFunction(MF);
}
+void MipsSEDAGToDAGISel::getAnalysisUsage(AnalysisUsage &AU) const {
+ AU.addRequired<DominatorTreeWrapperPass>();
+ SelectionDAGISel::getAnalysisUsage(AU);
+}
+
void MipsSEDAGToDAGISel::addDSPCtrlRegOperands(bool IsDef, MachineInstr &MI,
MachineFunction &MF) {
MachineInstrBuilder MIB(MF, &MI);
Index: llvm/trunk/lib/Target/Mips/MipsSEISelDAGToDAG.h
===================================================================
--- llvm/trunk/lib/Target/Mips/MipsSEISelDAGToDAG.h
+++ llvm/trunk/lib/Target/Mips/MipsSEISelDAGToDAG.h
@@ -28,6 +28,8 @@
bool runOnMachineFunction(MachineFunction &MF) override;
+ void getAnalysisUsage(AnalysisUsage &AU) const override;
+
void addDSPCtrlRegOperands(bool IsDef, MachineInstr &MI,
MachineFunction &MF);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27841.83020.patch
Type: text/x-patch
Size: 1406 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170104/ffd49f20/attachment.bin>
More information about the llvm-commits
mailing list