- 
                Notifications
    
You must be signed in to change notification settings  - Fork 15.1k
 
          [SLPVectorizer] Clear TreeEntryToStridedPtrInfoMap.
          #160544
        
          New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Merged
      
      
    
  
     Merged
                    Changes from all commits
      Commits
    
    
            Show all changes
          
          
            6 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      cf12ede
              
                [SLPVectorizer] Clear `TreeEntryToStridedPtrInfoMap`.
              
              
                 27babc5
              
                [SLPVectorizer] Test `deleteTree`.
              
              
                 7dc4239
              
                moved the assert
              
              
                 c55197d
              
                updated test checks and moved the test to RISCV directory.
              
              
                 15c59c3
              
                re-run CI
              
              
                 9ab861e
              
                Merge branch 'main' into clear_map
              
              
                mgudim File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
        
          
          
            83 changes: 83 additions & 0 deletions
          
          83 
        
  llvm/test/Transforms/SLPVectorizer/RISCV/test-delete-tree.ll
  
  
      
      
   
        
      
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,83 @@ | ||
| ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 6 | ||
| ; RUN: opt -mtriple=riscv64 -mattr=+m,+v -passes=slp-vectorizer -S < %s | FileCheck %s | ||
| 
     | 
||
| ; CHECK-NOT: TreeEntryToStridedPtrInfoMap is not cleared | ||
| define void @const_stride_1_no_reordering(ptr %pl, ptr %ps) { | ||
| ; CHECK-LABEL: define void @const_stride_1_no_reordering( | ||
| ; CHECK-SAME: ptr [[PL:%.*]], ptr [[PS:%.*]]) #[[ATTR0:[0-9]+]] { | ||
| ; CHECK-NEXT: [[GEP_L0:%.*]] = getelementptr inbounds i8, ptr [[PL]], i64 0 | ||
| ; CHECK-NEXT: [[GEP_S0:%.*]] = getelementptr inbounds i8, ptr [[PS]], i64 0 | ||
| ; CHECK-NEXT: [[TMP1:%.*]] = load <16 x i8>, ptr [[GEP_L0]], align 1 | ||
| ; CHECK-NEXT: store <16 x i8> [[TMP1]], ptr [[GEP_S0]], align 1 | ||
| ; CHECK-NEXT: ret void | ||
| ; | ||
| %gep_l0 = getelementptr inbounds i8, ptr %pl, i64 0 | ||
| %gep_l1 = getelementptr inbounds i8, ptr %pl, i64 1 | ||
| %gep_l2 = getelementptr inbounds i8, ptr %pl, i64 2 | ||
| %gep_l3 = getelementptr inbounds i8, ptr %pl, i64 3 | ||
| %gep_l4 = getelementptr inbounds i8, ptr %pl, i64 4 | ||
| %gep_l5 = getelementptr inbounds i8, ptr %pl, i64 5 | ||
| %gep_l6 = getelementptr inbounds i8, ptr %pl, i64 6 | ||
| %gep_l7 = getelementptr inbounds i8, ptr %pl, i64 7 | ||
| %gep_l8 = getelementptr inbounds i8, ptr %pl, i64 8 | ||
| %gep_l9 = getelementptr inbounds i8, ptr %pl, i64 9 | ||
| %gep_l10 = getelementptr inbounds i8, ptr %pl, i64 10 | ||
| %gep_l11 = getelementptr inbounds i8, ptr %pl, i64 11 | ||
| %gep_l12 = getelementptr inbounds i8, ptr %pl, i64 12 | ||
| %gep_l13 = getelementptr inbounds i8, ptr %pl, i64 13 | ||
| %gep_l14 = getelementptr inbounds i8, ptr %pl, i64 14 | ||
| %gep_l15 = getelementptr inbounds i8, ptr %pl, i64 15 | ||
| 
     | 
||
| %load0 = load i8, ptr %gep_l0 | ||
| %load1 = load i8, ptr %gep_l1 | ||
| %load2 = load i8, ptr %gep_l2 | ||
| %load3 = load i8, ptr %gep_l3 | ||
| %load4 = load i8, ptr %gep_l4 | ||
| %load5 = load i8, ptr %gep_l5 | ||
| %load6 = load i8, ptr %gep_l6 | ||
| %load7 = load i8, ptr %gep_l7 | ||
| %load8 = load i8, ptr %gep_l8 | ||
| %load9 = load i8, ptr %gep_l9 | ||
| %load10 = load i8, ptr %gep_l10 | ||
| %load11 = load i8, ptr %gep_l11 | ||
| %load12 = load i8, ptr %gep_l12 | ||
| %load13 = load i8, ptr %gep_l13 | ||
| %load14 = load i8, ptr %gep_l14 | ||
| %load15 = load i8, ptr %gep_l15 | ||
| 
     | 
||
| %gep_s0 = getelementptr inbounds i8, ptr %ps, i64 0 | ||
| %gep_s1 = getelementptr inbounds i8, ptr %ps, i64 1 | ||
| %gep_s2 = getelementptr inbounds i8, ptr %ps, i64 2 | ||
| %gep_s3 = getelementptr inbounds i8, ptr %ps, i64 3 | ||
| %gep_s4 = getelementptr inbounds i8, ptr %ps, i64 4 | ||
| %gep_s5 = getelementptr inbounds i8, ptr %ps, i64 5 | ||
| %gep_s6 = getelementptr inbounds i8, ptr %ps, i64 6 | ||
| %gep_s7 = getelementptr inbounds i8, ptr %ps, i64 7 | ||
| %gep_s8 = getelementptr inbounds i8, ptr %ps, i64 8 | ||
| %gep_s9 = getelementptr inbounds i8, ptr %ps, i64 9 | ||
| %gep_s10 = getelementptr inbounds i8, ptr %ps, i64 10 | ||
| %gep_s11 = getelementptr inbounds i8, ptr %ps, i64 11 | ||
| %gep_s12 = getelementptr inbounds i8, ptr %ps, i64 12 | ||
| %gep_s13 = getelementptr inbounds i8, ptr %ps, i64 13 | ||
| %gep_s14 = getelementptr inbounds i8, ptr %ps, i64 14 | ||
| %gep_s15 = getelementptr inbounds i8, ptr %ps, i64 15 | ||
| 
     | 
||
| store i8 %load0, ptr %gep_s0 | ||
| store i8 %load1, ptr %gep_s1 | ||
| store i8 %load2, ptr %gep_s2 | ||
| store i8 %load3, ptr %gep_s3 | ||
| store i8 %load4, ptr %gep_s4 | ||
| store i8 %load5, ptr %gep_s5 | ||
| store i8 %load6, ptr %gep_s6 | ||
| store i8 %load7, ptr %gep_s7 | ||
| store i8 %load8, ptr %gep_s8 | ||
| store i8 %load9, ptr %gep_s9 | ||
| store i8 %load10, ptr %gep_s10 | ||
| store i8 %load11, ptr %gep_s11 | ||
| store i8 %load12, ptr %gep_s12 | ||
| store i8 %load13, ptr %gep_s13 | ||
| store i8 %load14, ptr %gep_s14 | ||
| store i8 %load15, ptr %gep_s15 | ||
| 
     | 
||
| ret void | ||
| } | ||
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add real checks here