We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f971fa commit 64265ebCopy full SHA for 64265eb
clang/lib/CodeGen/BackendUtil.cpp
@@ -83,6 +83,7 @@
83
#include "llvm/Transforms/ObjCARC.h"
84
#include "llvm/Transforms/Scalar/EarlyCSE.h"
85
#include "llvm/Transforms/Scalar/GVN.h"
86
+#include "llvm/Transforms/IPO/GlobalOpt.h"
87
#include "llvm/Transforms/Scalar/JumpThreading.h"
88
#include "llvm/Transforms/Utils/Debugify.h"
89
#include "llvm/Transforms/Utils/ModuleUtils.h"
@@ -1168,6 +1169,7 @@ void EmitAssemblyHelper::RunOptimizationPipeline(
1168
1169
if (LangOpts.HLSL) {
1170
// HLSL legalization passes
1171
MPM.addPass(DXILFinalizeLinkage());
1172
+ MPM.addPass(GlobalOptPass());
1173
}
1174
1175
// Now that we have all of the passes ready, run them.
0 commit comments