File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
llvm/lib/CodeGen/SelectionDAG Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -149,6 +149,10 @@ static cl::opt<bool> EnableShrinkLoadReplaceStoreWithStore(
149
149
cl::desc("DAG combiner enable load/<replace bytes>/store with "
150
150
"a narrower store"));
151
151
152
+ static cl::opt<bool> DisableCombines("combiner-disabled", cl::Hidden,
153
+ cl::init(false),
154
+ cl::desc("Disable the DAG combiner"));
155
+
152
156
namespace {
153
157
154
158
class DAGCombiner {
@@ -248,7 +252,8 @@ namespace {
248
252
STI(D.getSubtarget().getSelectionDAGInfo()), OptLevel(OL),
249
253
BatchAA(BatchAA) {
250
254
ForCodeSize = DAG.shouldOptForSize();
251
- DisableGenericCombines = STI && STI->disableGenericCombines(OptLevel);
255
+ DisableGenericCombines =
256
+ DisableCombines || (STI && STI->disableGenericCombines(OptLevel));
252
257
253
258
MaximumLegalStoreInBits = 0;
254
259
// We use the minimum store size here, since that's all we can guarantee
You can’t perform that action at this time.
0 commit comments