1 //===-- X86TargetMachine.cpp - Define TargetMachine for the X86 -----------===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 // 9 // This file defines the X86 specific subclass of TargetMachine. 10 // 11 //===----------------------------------------------------------------------===// 12 13 #include "X86TargetMachine.h" 14 #include "MCTargetDesc/X86MCTargetDesc.h" 15 #include "TargetInfo/X86TargetInfo.h" 16 #include "X86.h" 17 #include "X86CallLowering.h" 18 #include "X86LegalizerInfo.h" 19 #include "X86MacroFusion.h" 20 #include "X86Subtarget.h" 21 #include "X86TargetObjectFile.h" 22 #include "X86TargetTransformInfo.h" 23 #include "llvm/ADT/Optional.h" 24 #include "llvm/ADT/STLExtras.h" 25 #include "llvm/ADT/SmallString.h" 26 #include "llvm/ADT/StringRef.h" 27 #include "llvm/ADT/Triple.h" 28 #include "llvm/Analysis/TargetTransformInfo.h" 29 #include "llvm/CodeGen/ExecutionDomainFix.h" 30 #include "llvm/CodeGen/GlobalISel/CallLowering.h" 31 #include "llvm/CodeGen/GlobalISel/IRTranslator.h" 32 #include "llvm/CodeGen/GlobalISel/InstructionSelect.h" 33 #include "llvm/CodeGen/GlobalISel/Legalizer.h" 34 #include "llvm/CodeGen/GlobalISel/RegBankSelect.h" 35 #include "llvm/CodeGen/MachineScheduler.h" 36 #include "llvm/CodeGen/Passes.h" 37 #include "llvm/CodeGen/TargetPassConfig.h" 38 #include "llvm/IR/Attributes.h" 39 #include "llvm/IR/DataLayout.h" 40 #include "llvm/IR/Function.h" 41 #include "llvm/MC/MCAsmInfo.h" 42 #include "llvm/Pass.h" 43 #include "llvm/Support/CodeGen.h" 44 #include "llvm/Support/CommandLine.h" 45 #include "llvm/Support/ErrorHandling.h" 46 #include "llvm/Support/TargetRegistry.h" 47 #include "llvm/Target/TargetLoweringObjectFile.h" 48 #include "llvm/Target/TargetOptions.h" 49 #include "llvm/Transforms/CFGuard.h" 50 #include <memory> 51 #include <string> 52 53 using namespace llvm; 54 55 static cl::opt<bool> EnableMachineCombinerPass("x86-machine-combiner", 56 cl::desc("Enable the machine combiner pass"), 57 cl::init(true), cl::Hidden); 58 59 extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeX86Target() { 60 // Register the target. 61 RegisterTargetMachine<X86TargetMachine> X(getTheX86_32Target()); 62 RegisterTargetMachine<X86TargetMachine> Y(getTheX86_64Target()); 63 64 PassRegistry &PR = *PassRegistry::getPassRegistry(); 65 initializeX86LowerAMXIntrinsicsLegacyPassPass(PR); 66 initializeX86LowerAMXTypeLegacyPassPass(PR); 67 initializeGlobalISel(PR); 68 initializeWinEHStatePassPass(PR); 69 initializeFixupBWInstPassPass(PR); 70 initializeEvexToVexInstPassPass(PR); 71 initializeFixupLEAPassPass(PR); 72 initializeFPSPass(PR); 73 initializeX86FixupSetCCPassPass(PR); 74 initializeX86CallFrameOptimizationPass(PR); 75 initializeX86CmovConverterPassPass(PR); 76 initializeX86TileConfigPass(PR); 77 initializeX86LowerTileCopyPass(PR); 78 initializeX86ExpandPseudoPass(PR); 79 initializeX86ExecutionDomainFixPass(PR); 80 initializeX86DomainReassignmentPass(PR); 81 initializeX86AvoidSFBPassPass(PR); 82 initializeX86AvoidTrailingCallPassPass(PR); 83 initializeX86SpeculativeLoadHardeningPassPass(PR); 84 initializeX86SpeculativeExecutionSideEffectSuppressionPass(PR); 85 initializeX86FlagsCopyLoweringPassPass(PR); 86 initializeX86LoadValueInjectionLoadHardeningPassPass(PR); 87 initializeX86LoadValueInjectionRetHardeningPassPass(PR); 88 initializeX86OptimizeLEAPassPass(PR); 89 initializeX86PartialReductionPass(PR); 90 initializePseudoProbeInserterPass(PR); 91 } 92 93 static std::unique_ptr<TargetLoweringObjectFile> createTLOF(const Triple &TT) { 94 if (TT.isOSBinFormatMachO()) { 95 if (TT.getArch() == Triple::x86_64) 96 return std::make_unique<X86_64MachoTargetObjectFile>(); 97 return std::make_unique<TargetLoweringObjectFileMachO>(); 98 } 99 100 if (TT.isOSBinFormatCOFF()) 101 return std::make_unique<TargetLoweringObjectFileCOFF>(); 102 return std::make_unique<X86ELFTargetObjectFile>(); 103 } 104 105 static std::string computeDataLayout(const Triple &TT) { 106 // X86 is little endian 107 std::string Ret = "e"; 108 109 Ret += DataLayout::getManglingComponent(TT); 110 // X86 and x32 have 32 bit pointers. 111 if ((TT.isArch64Bit() && 112 (TT.getEnvironment() == Triple::GNUX32 || TT.isOSNaCl())) || 113 !TT.isArch64Bit()) 114 Ret += "-p:32:32"; 115 116 // Address spaces for 32 bit signed, 32 bit unsigned, and 64 bit pointers. 117 Ret += "-p270:32:32-p271:32:32-p272:64:64"; 118 119 // Some ABIs align 64 bit integers and doubles to 64 bits, others to 32. 120 if (TT.isArch64Bit() || TT.isOSWindows() || TT.isOSNaCl()) 121 Ret += "-i64:64"; 122 else if (TT.isOSIAMCU()) 123 Ret += "-i64:32-f64:32"; 124 else 125 Ret += "-f64:32:64"; 126 127 // Some ABIs align long double to 128 bits, others to 32. 128 if (TT.isOSNaCl() || TT.isOSIAMCU()) 129 ; // No f80 130 else if (TT.isArch64Bit() || TT.isOSDarwin()) 131 Ret += "-f80:128"; 132 else 133 Ret += "-f80:32"; 134 135 if (TT.isOSIAMCU()) 136 Ret += "-f128:32"; 137 138 // The registers can hold 8, 16, 32 or, in x86-64, 64 bits. 139 if (TT.isArch64Bit()) 140 Ret += "-n8:16:32:64"; 141 else 142 Ret += "-n8:16:32"; 143 144 // The stack is aligned to 32 bits on some ABIs and 128 bits on others. 145 if ((!TT.isArch64Bit() && TT.isOSWindows()) || TT.isOSIAMCU()) 146 Ret += "-a:0:32-S32"; 147 else 148 Ret += "-S128"; 149 150 return Ret; 151 } 152 153 static Reloc::Model getEffectiveRelocModel(const Triple &TT, 154 bool JIT, 155 Optional<Reloc::Model> RM) { 156 bool is64Bit = TT.getArch() == Triple::x86_64; 157 if (!RM.hasValue()) { 158 // JIT codegen should use static relocations by default, since it's 159 // typically executed in process and not relocatable. 160 if (JIT) 161 return Reloc::Static; 162 163 // Darwin defaults to PIC in 64 bit mode and dynamic-no-pic in 32 bit mode. 164 // Win64 requires rip-rel addressing, thus we force it to PIC. Otherwise we 165 // use static relocation model by default. 166 if (TT.isOSDarwin()) { 167 if (is64Bit) 168 return Reloc::PIC_; 169 return Reloc::DynamicNoPIC; 170 } 171 if (TT.isOSWindows() && is64Bit) 172 return Reloc::PIC_; 173 return Reloc::Static; 174 } 175 176 // ELF and X86-64 don't have a distinct DynamicNoPIC model. DynamicNoPIC 177 // is defined as a model for code which may be used in static or dynamic 178 // executables but not necessarily a shared library. On X86-32 we just 179 // compile in -static mode, in x86-64 we use PIC. 180 if (*RM == Reloc::DynamicNoPIC) { 181 if (is64Bit) 182 return Reloc::PIC_; 183 if (!TT.isOSDarwin()) 184 return Reloc::Static; 185 } 186 187 // If we are on Darwin, disallow static relocation model in X86-64 mode, since 188 // the Mach-O file format doesn't support it. 189 if (*RM == Reloc::Static && TT.isOSDarwin() && is64Bit) 190 return Reloc::PIC_; 191 192 return *RM; 193 } 194 195 static CodeModel::Model getEffectiveX86CodeModel(Optional<CodeModel::Model> CM, 196 bool JIT, bool Is64Bit) { 197 if (CM) { 198 if (*CM == CodeModel::Tiny) 199 report_fatal_error("Target does not support the tiny CodeModel", false); 200 return *CM; 201 } 202 if (JIT) 203 return Is64Bit ? CodeModel::Large : CodeModel::Small; 204 return CodeModel::Small; 205 } 206 207 /// Create an X86 target. 208 /// 209 X86TargetMachine::X86TargetMachine(const Target &T, const Triple &TT, 210 StringRef CPU, StringRef FS, 211 const TargetOptions &Options, 212 Optional<Reloc::Model> RM, 213 Optional<CodeModel::Model> CM, 214 CodeGenOpt::Level OL, bool JIT) 215 : LLVMTargetMachine( 216 T, computeDataLayout(TT), TT, CPU, FS, Options, 217 getEffectiveRelocModel(TT, JIT, RM), 218 getEffectiveX86CodeModel(CM, JIT, TT.getArch() == Triple::x86_64), 219 OL), 220 TLOF(createTLOF(getTargetTriple())), IsJIT(JIT) { 221 // On PS4, the "return address" of a 'noreturn' call must still be within 222 // the calling function, and TrapUnreachable is an easy way to get that. 223 if (TT.isPS4() || TT.isOSBinFormatMachO()) { 224 this->Options.TrapUnreachable = true; 225 this->Options.NoTrapAfterNoreturn = TT.isOSBinFormatMachO(); 226 } 227 228 setMachineOutliner(true); 229 230 // x86 supports the debug entry values. 231 setSupportsDebugEntryValues(true); 232 233 initAsmInfo(); 234 } 235 236 X86TargetMachine::~X86TargetMachine() = default; 237 238 const X86Subtarget * 239 X86TargetMachine::getSubtargetImpl(const Function &F) const { 240 Attribute CPUAttr = F.getFnAttribute("target-cpu"); 241 Attribute TuneAttr = F.getFnAttribute("tune-cpu"); 242 Attribute FSAttr = F.getFnAttribute("target-features"); 243 244 StringRef CPU = 245 CPUAttr.isValid() ? CPUAttr.getValueAsString() : (StringRef)TargetCPU; 246 StringRef TuneCPU = 247 TuneAttr.isValid() ? TuneAttr.getValueAsString() : (StringRef)CPU; 248 StringRef FS = 249 FSAttr.isValid() ? FSAttr.getValueAsString() : (StringRef)TargetFS; 250 251 SmallString<512> Key; 252 // The additions here are ordered so that the definitely short strings are 253 // added first so we won't exceed the small size. We append the 254 // much longer FS string at the end so that we only heap allocate at most 255 // one time. 256 257 // Extract prefer-vector-width attribute. 258 unsigned PreferVectorWidthOverride = 0; 259 Attribute PreferVecWidthAttr = F.getFnAttribute("prefer-vector-width"); 260 if (PreferVecWidthAttr.isValid()) { 261 StringRef Val = PreferVecWidthAttr.getValueAsString(); 262 unsigned Width; 263 if (!Val.getAsInteger(0, Width)) { 264 Key += 'p'; 265 Key += Val; 266 PreferVectorWidthOverride = Width; 267 } 268 } 269 270 // Extract min-legal-vector-width attribute. 271 unsigned RequiredVectorWidth = UINT32_MAX; 272 Attribute MinLegalVecWidthAttr = F.getFnAttribute("min-legal-vector-width"); 273 if (MinLegalVecWidthAttr.isValid()) { 274 StringRef Val = MinLegalVecWidthAttr.getValueAsString(); 275 unsigned Width; 276 if (!Val.getAsInteger(0, Width)) { 277 Key += 'm'; 278 Key += Val; 279 RequiredVectorWidth = Width; 280 } 281 } 282 283 // Add CPU to the Key. 284 Key += CPU; 285 286 // Add tune CPU to the Key. 287 Key += TuneCPU; 288 289 // Keep track of the start of the feature portion of the string. 290 unsigned FSStart = Key.size(); 291 292 // FIXME: This is related to the code below to reset the target options, 293 // we need to know whether or not the soft float flag is set on the 294 // function before we can generate a subtarget. We also need to use 295 // it as a key for the subtarget since that can be the only difference 296 // between two functions. 297 bool SoftFloat = F.getFnAttribute("use-soft-float").getValueAsBool(); 298 // If the soft float attribute is set on the function turn on the soft float 299 // subtarget feature. 300 if (SoftFloat) 301 Key += FS.empty() ? "+soft-float" : "+soft-float,"; 302 303 Key += FS; 304 305 // We may have added +soft-float to the features so move the StringRef to 306 // point to the full string in the Key. 307 FS = Key.substr(FSStart); 308 309 auto &I = SubtargetMap[Key]; 310 if (!I) { 311 // This needs to be done before we create a new subtarget since any 312 // creation will depend on the TM and the code generation flags on the 313 // function that reside in TargetOptions. 314 resetTargetOptions(F); 315 I = std::make_unique<X86Subtarget>( 316 TargetTriple, CPU, TuneCPU, FS, *this, 317 MaybeAlign(Options.StackAlignmentOverride), PreferVectorWidthOverride, 318 RequiredVectorWidth); 319 } 320 return I.get(); 321 } 322 323 bool X86TargetMachine::isNoopAddrSpaceCast(unsigned SrcAS, 324 unsigned DestAS) const { 325 assert(SrcAS != DestAS && "Expected different address spaces!"); 326 if (getPointerSize(SrcAS) != getPointerSize(DestAS)) 327 return false; 328 return SrcAS < 256 && DestAS < 256; 329 } 330 331 //===----------------------------------------------------------------------===// 332 // X86 TTI query. 333 //===----------------------------------------------------------------------===// 334 335 TargetTransformInfo 336 X86TargetMachine::getTargetTransformInfo(const Function &F) { 337 return TargetTransformInfo(X86TTIImpl(this, F)); 338 } 339 340 //===----------------------------------------------------------------------===// 341 // Pass Pipeline Configuration 342 //===----------------------------------------------------------------------===// 343 344 namespace { 345 346 /// X86 Code Generator Pass Configuration Options. 347 class X86PassConfig : public TargetPassConfig { 348 public: 349 X86PassConfig(X86TargetMachine &TM, PassManagerBase &PM) 350 : TargetPassConfig(TM, PM) {} 351 352 X86TargetMachine &getX86TargetMachine() const { 353 return getTM<X86TargetMachine>(); 354 } 355 356 ScheduleDAGInstrs * 357 createMachineScheduler(MachineSchedContext *C) const override { 358 ScheduleDAGMILive *DAG = createGenericSchedLive(C); 359 DAG->addMutation(createX86MacroFusionDAGMutation()); 360 return DAG; 361 } 362 363 ScheduleDAGInstrs * 364 createPostMachineScheduler(MachineSchedContext *C) const override { 365 ScheduleDAGMI *DAG = createGenericSchedPostRA(C); 366 DAG->addMutation(createX86MacroFusionDAGMutation()); 367 return DAG; 368 } 369 370 void addIRPasses() override; 371 bool addInstSelector() override; 372 bool addIRTranslator() override; 373 bool addLegalizeMachineIR() override; 374 bool addRegBankSelect() override; 375 bool addGlobalInstructionSelect() override; 376 bool addILPOpts() override; 377 bool addPreISel() override; 378 void addMachineSSAOptimization() override; 379 void addPreRegAlloc() override; 380 void addPostRegAlloc() override; 381 void addPreEmitPass() override; 382 void addPreEmitPass2() override; 383 void addPreSched2() override; 384 bool addPreRewrite() override; 385 386 std::unique_ptr<CSEConfigBase> getCSEConfig() const override; 387 }; 388 389 class X86ExecutionDomainFix : public ExecutionDomainFix { 390 public: 391 static char ID; 392 X86ExecutionDomainFix() : ExecutionDomainFix(ID, X86::VR128XRegClass) {} 393 StringRef getPassName() const override { 394 return "X86 Execution Dependency Fix"; 395 } 396 }; 397 char X86ExecutionDomainFix::ID; 398 399 } // end anonymous namespace 400 401 INITIALIZE_PASS_BEGIN(X86ExecutionDomainFix, "x86-execution-domain-fix", 402 "X86 Execution Domain Fix", false, false) 403 INITIALIZE_PASS_DEPENDENCY(ReachingDefAnalysis) 404 INITIALIZE_PASS_END(X86ExecutionDomainFix, "x86-execution-domain-fix", 405 "X86 Execution Domain Fix", false, false) 406 407 TargetPassConfig *X86TargetMachine::createPassConfig(PassManagerBase &PM) { 408 return new X86PassConfig(*this, PM); 409 } 410 411 void X86PassConfig::addIRPasses() { 412 addPass(createAtomicExpandPass()); 413 414 // We add both pass anyway and when these two passes run, we skip the pass 415 // based on the option level and option attribute. 416 addPass(createX86LowerAMXIntrinsicsPass()); 417 addPass(createX86LowerAMXTypePass()); 418 419 TargetPassConfig::addIRPasses(); 420 421 if (TM->getOptLevel() != CodeGenOpt::None) { 422 addPass(createInterleavedAccessPass()); 423 addPass(createX86PartialReductionPass()); 424 } 425 426 // Add passes that handle indirect branch removal and insertion of a retpoline 427 // thunk. These will be a no-op unless a function subtarget has the retpoline 428 // feature enabled. 429 addPass(createIndirectBrExpandPass()); 430 431 // Add Control Flow Guard checks. 432 const Triple &TT = TM->getTargetTriple(); 433 if (TT.isOSWindows()) { 434 if (TT.getArch() == Triple::x86_64) { 435 addPass(createCFGuardDispatchPass()); 436 } else { 437 addPass(createCFGuardCheckPass()); 438 } 439 } 440 } 441 442 bool X86PassConfig::addInstSelector() { 443 // Install an instruction selector. 444 addPass(createX86ISelDag(getX86TargetMachine(), getOptLevel())); 445 446 // For ELF, cleanup any local-dynamic TLS accesses. 447 if (TM->getTargetTriple().isOSBinFormatELF() && 448 getOptLevel() != CodeGenOpt::None) 449 addPass(createCleanupLocalDynamicTLSPass()); 450 451 addPass(createX86GlobalBaseRegPass()); 452 return false; 453 } 454 455 bool X86PassConfig::addIRTranslator() { 456 addPass(new IRTranslator(getOptLevel())); 457 return false; 458 } 459 460 bool X86PassConfig::addLegalizeMachineIR() { 461 addPass(new Legalizer()); 462 return false; 463 } 464 465 bool X86PassConfig::addRegBankSelect() { 466 addPass(new RegBankSelect()); 467 return false; 468 } 469 470 bool X86PassConfig::addGlobalInstructionSelect() { 471 addPass(new InstructionSelect(getOptLevel())); 472 return false; 473 } 474 475 bool X86PassConfig::addILPOpts() { 476 addPass(&EarlyIfConverterID); 477 if (EnableMachineCombinerPass) 478 addPass(&MachineCombinerID); 479 addPass(createX86CmovConverterPass()); 480 return true; 481 } 482 483 bool X86PassConfig::addPreISel() { 484 // Only add this pass for 32-bit x86 Windows. 485 const Triple &TT = TM->getTargetTriple(); 486 if (TT.isOSWindows() && TT.getArch() == Triple::x86) 487 addPass(createX86WinEHStatePass()); 488 return true; 489 } 490 491 void X86PassConfig::addPreRegAlloc() { 492 if (getOptLevel() != CodeGenOpt::None) { 493 addPass(&LiveRangeShrinkID); 494 addPass(createX86FixupSetCC()); 495 addPass(createX86OptimizeLEAs()); 496 addPass(createX86CallFrameOptimization()); 497 addPass(createX86AvoidStoreForwardingBlocks()); 498 } 499 500 addPass(createX86SpeculativeLoadHardeningPass()); 501 addPass(createX86FlagsCopyLoweringPass()); 502 addPass(createX86WinAllocaExpander()); 503 504 if (getOptLevel() != CodeGenOpt::None) { 505 addPass(createX86PreTileConfigPass()); 506 } 507 } 508 509 void X86PassConfig::addMachineSSAOptimization() { 510 addPass(createX86DomainReassignmentPass()); 511 TargetPassConfig::addMachineSSAOptimization(); 512 } 513 514 void X86PassConfig::addPostRegAlloc() { 515 addPass(createX86LowerTileCopyPass()); 516 addPass(createX86FloatingPointStackifierPass()); 517 // When -O0 is enabled, the Load Value Injection Hardening pass will fall back 518 // to using the Speculative Execution Side Effect Suppression pass for 519 // mitigation. This is to prevent slow downs due to 520 // analyses needed by the LVIHardening pass when compiling at -O0. 521 if (getOptLevel() != CodeGenOpt::None) 522 addPass(createX86LoadValueInjectionLoadHardeningPass()); 523 } 524 525 void X86PassConfig::addPreSched2() { addPass(createX86ExpandPseudoPass()); } 526 527 void X86PassConfig::addPreEmitPass() { 528 if (getOptLevel() != CodeGenOpt::None) { 529 addPass(new X86ExecutionDomainFix()); 530 addPass(createBreakFalseDeps()); 531 } 532 533 addPass(createX86IndirectBranchTrackingPass()); 534 535 addPass(createX86IssueVZeroUpperPass()); 536 537 if (getOptLevel() != CodeGenOpt::None) { 538 addPass(createX86FixupBWInsts()); 539 addPass(createX86PadShortFunctions()); 540 addPass(createX86FixupLEAs()); 541 } 542 addPass(createX86EvexToVexInsts()); 543 addPass(createX86DiscriminateMemOpsPass()); 544 addPass(createX86InsertPrefetchPass()); 545 addPass(createX86InsertX87waitPass()); 546 } 547 548 void X86PassConfig::addPreEmitPass2() { 549 const Triple &TT = TM->getTargetTriple(); 550 const MCAsmInfo *MAI = TM->getMCAsmInfo(); 551 552 // The X86 Speculative Execution Pass must run after all control 553 // flow graph modifying passes. As a result it was listed to run right before 554 // the X86 Retpoline Thunks pass. The reason it must run after control flow 555 // graph modifications is that the model of LFENCE in LLVM has to be updated 556 // (FIXME: https://bugs.llvm.org/show_bug.cgi?id=45167). Currently the 557 // placement of this pass was hand checked to ensure that the subsequent 558 // passes don't move the code around the LFENCEs in a way that will hurt the 559 // correctness of this pass. This placement has been shown to work based on 560 // hand inspection of the codegen output. 561 addPass(createX86SpeculativeExecutionSideEffectSuppression()); 562 addPass(createX86IndirectThunksPass()); 563 564 // Insert extra int3 instructions after trailing call instructions to avoid 565 // issues in the unwinder. 566 if (TT.isOSWindows() && TT.getArch() == Triple::x86_64) 567 addPass(createX86AvoidTrailingCallPass()); 568 569 // Verify basic block incoming and outgoing cfa offset and register values and 570 // correct CFA calculation rule where needed by inserting appropriate CFI 571 // instructions. 572 if (!TT.isOSDarwin() && 573 (!TT.isOSWindows() || 574 MAI->getExceptionHandlingType() == ExceptionHandling::DwarfCFI)) 575 addPass(createCFIInstrInserter()); 576 577 if (TT.isOSWindows()) { 578 // Identify valid longjmp targets for Windows Control Flow Guard. 579 addPass(createCFGuardLongjmpPass()); 580 // Identify valid eh continuation targets for Windows EHCont Guard. 581 addPass(createEHContGuardCatchretPass()); 582 } 583 addPass(createX86LoadValueInjectionRetHardeningPass()); 584 } 585 586 bool X86PassConfig::addPreRewrite() { 587 addPass(createX86TileConfigPass()); 588 return true; 589 } 590 591 std::unique_ptr<CSEConfigBase> X86PassConfig::getCSEConfig() const { 592 return getStandardCSEConfigForOpt(TM->getOptLevel()); 593 } 594