File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed 
lib/Dialect/LLHD/Transforms Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -376,12 +376,12 @@ static void simplifyProcess(ProcessOp &processOp) {
376376  IRRewriter rewriter (builder);
377377  (void )simplifyRegions (rewriter, processOp->getRegions ());
378378
379-   //  simplifyRegions does not prune the destination operands of the
380-   //  `llhd.wait`  operation because it does not implement BranchOpInterface, due
381-   //  to its  side-effect semantics. Implementing BranchOpInterface could allow
382-   //  other  optimizations to forward branch operands from the llhd.wait
383-   //  operation to  the destination block where execution resumes. However, this
384-   //  would be  invalid, as the SSA value might change across the wait operation.
379+   //  simplifyRegions does not prune the destination operands of the `llhd.wait` 
380+   //  operation because it does not implement BranchOpInterface, due to its 
381+   //  side-effect semantics. Implementing BranchOpInterface could allow other 
382+   //  optimizations to forward branch operands from the ` llhd.wait` operation to 
383+   //  the destination block where execution resumes. However, this would be 
384+   //  invalid, as the SSA value might change across the wait operation.
385385  //  Therefore, we manually prune the destination block arguments ourselves.
386386  for  (auto  &block : processOp.getBody ()) {
387387    auto  waitOp = dyn_cast<WaitOp>(block.getTerminator ());
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments