Skip to content

Commit 3cb2b36

Browse files
igorban-inteligcbot
authored andcommitted
[Autobackout][FuncReg]Revert of change: 2836dec
Enable optimization for non-specific api-options Enable optimizations for options: -cl-opt-disable and -ze-opt-disable
1 parent 54e89df commit 3cb2b36

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

IGC/VectorCompiler/lib/Driver/Driver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,8 +695,8 @@ deriveOptimizationLevel(opt::Arg *A, OptSpecifier PrimaryOpt) {
695695
StringRef Val = A->getValue();
696696
return parseOptimizationLevelString(Val);
697697
} else {
698-
// Default optimization mode - O2
699-
return vc::OptimizerLevel::Full;
698+
IGC_ASSERT(A->getOption().matches(OPT_opt_disable_common));
699+
return vc::OptimizerLevel::None;
700700
}
701701
}
702702

IGC/VectorCompiler/lib/GenXCodeGen/GenXLowering.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4222,13 +4222,13 @@ bool GenXLowering::lowerLzd(Instruction *Inst) {
42224222
bool GenXLowering::lower64Bitreverse(CallInst *CI) {
42234223
// %1 = call i64 @llvm.bitreverse.i64(i64 %in)
42244224
// to
4225-
// {%inH, %inL} = rdregion.32 %in
4226-
// %inRH = bitreverse.32 %inH
4227-
// %inRL = bitreverse.32 %inL
4228-
// %res = wrregion.64 {%inRL, %inRH}
4225+
// %1 = call i64 @llvm.bitreverse.i64(i64 %in)
4226+
// {inH, inL} = rdregion.32 in
4227+
// inRH = bitreverse.32 inH
4228+
// inRL = bitreverse.32 inL
4229+
// res = wrregion.64 {inRL, inRH}
42294230

42304231
auto *InType = CI->getType();
4231-
IGC_ASSERT(InType->getScalarSizeInBits() == 64);
42324232
IRBuilder<> IRB{CI};
42334233
auto Split = IVSplitter(*CI).splitValueLoHi(*CI->getOperand(0));
42344234
auto *ResTy = Split.Lo->getType();

0 commit comments

Comments
 (0)