[llvm] r274886 - AMDGPU: Minor adjustment to r274817

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 8 10:06:48 PDT 2016

Author: arsenm
Date: Fri Jul  8 12:06:48 2016
New Revision: 274886

URL: http://llvm.org/viewvc/llvm-project?rev=274886&view=rev
AMDGPU: Minor adjustment to r274817

The commit message is inaccurate, modifiesRegister
will check for partial defs of exec.

We currently don't ever emit partial defs of exec,
so it doesn't really matter.


Modified: llvm/trunk/lib/Target/AMDGPU/SILowerControlFlow.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SILowerControlFlow.cpp?rev=274886&r1=274885&r2=274886&view=diff
--- llvm/trunk/lib/Target/AMDGPU/SILowerControlFlow.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SILowerControlFlow.cpp Fri Jul  8 12:06:48 2016
@@ -644,7 +644,7 @@ bool SILowerControlFlow::runOnMachineFun
       if (TII->isFLAT(MI))
         NeedFlat = true;
-      if (I->definesRegister(AMDGPU::EXEC, TRI))
+      if (I->modifiesRegister(AMDGPU::EXEC, TRI))
         ExecModified = true;
       switch (MI.getOpcode()) {

More information about the llvm-commits mailing list