Skip to content

Commit e27efa2

Browse files
committed
turn off DCE
1 parent 1b36f2b commit e27efa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/SPIRV/SPIRVPreLegalizerCombiner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ bool SPIRVPreLegalizerCombiner::runOnMachineFunction(MachineFunction &MF) {
221221
CInfo.ObserverLvl = CombinerInfo::ObserverLevel::SinglePass;
222222
// This is the first Combiner, so the input IR might contain dead
223223
// instructions.
224-
CInfo.EnableFullDCE = true;
224+
CInfo.EnableFullDCE = false;
225225
SPIRVPreLegalizerCombinerImpl Impl(MF, CInfo, &TPC, *KB, /*CSEInfo*/ nullptr,
226226
RuleConfig, ST, MDT, LI);
227227
return Impl.combineMachineInstrs();

0 commit comments

Comments
 (0)