AVX512: SETCC returns i1 for AVX-512 and i8 for all others
[oota-llvm.git] / lib / Target / NVPTX / NVPTXAllocaHoisting.h
index 768d514dbb13c52ac6e2094820e00ed2b3bde106..d3305701a5b7a18e492d986ab47de18be263b082 100644 (file)
@@ -15,7 +15,7 @@
 #define NVPTX_ALLOCA_HOISTING_H_
 
 #include "llvm/CodeGen/MachineFunctionAnalysis.h"
-#include "llvm/DataLayout.h"
+#include "llvm/IR/DataLayout.h"
 #include "llvm/Pass.h"
 
 namespace llvm {
@@ -32,6 +32,7 @@ public:
 
   void getAnalysisUsage(AnalysisUsage &AU) const {
     AU.addRequired<DataLayout>();
+    AU.addPreserved("stack-protector");
     AU.addPreserved<MachineFunctionAnalysis>();
   }