[PATCH] D36417: AMDGPU: Remove redundant opt level check

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 7 10:47:50 PDT 2017

arsenm created this revision.
Herald added subscribers: t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng, kzhuravl.

addOptimizedRegAlloc isn't used for -O0 already.



Index: lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
--- lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
+++ lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
@@ -799,8 +799,7 @@
 void GCNPassConfig::addOptimizedRegAlloc(FunctionPass *RegAllocPass) {
-  if (getOptLevel() > CodeGenOpt::None)
-    insertPass(&MachineSchedulerID, &SIOptimizeExecMaskingPreRAID);
+  insertPass(&MachineSchedulerID, &SIOptimizeExecMaskingPreRAID);
   // This must be run immediately after phi elimination and before
   // TwoAddressInstructions, otherwise the processing of the tied operand of

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36417.110028.patch
Type: text/x-patch
Size: 631 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170807/839d56d2/attachment.bin>

More information about the llvm-commits mailing list