[llvm] 5561b48 - [test] Make global in split-gep-and-gvn.ll not constant

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 19 11:04:23 PDT 2021


Author: Arthur Eubanks
Date: 2021-04-19T11:03:19-07:00
New Revision: 5561b48b7072ac79113b9b0a363995db45e75a2a

URL: https://github.com/llvm/llvm-project/commit/5561b48b7072ac79113b9b0a363995db45e75a2a
DIFF: https://github.com/llvm/llvm-project/commit/5561b48b7072ac79113b9b0a363995db45e75a2a.diff

LOG: [test] Make global in split-gep-and-gvn.ll not constant

An upcoming change will cause loads from a constant zeroinitializer
global to be constant folded, breaking this test.

Added: 
    

Modified: 
    llvm/test/Transforms/SeparateConstOffsetFromGEP/NVPTX/split-gep-and-gvn.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/SeparateConstOffsetFromGEP/NVPTX/split-gep-and-gvn.ll b/llvm/test/Transforms/SeparateConstOffsetFromGEP/NVPTX/split-gep-and-gvn.ll
index 4f9e0ec88ad1b..19957689286d8 100644
--- a/llvm/test/Transforms/SeparateConstOffsetFromGEP/NVPTX/split-gep-and-gvn.ll
+++ b/llvm/test/Transforms/SeparateConstOffsetFromGEP/NVPTX/split-gep-and-gvn.ll
@@ -15,7 +15,7 @@
 ;
 ; so the backend can emit PTX that uses fewer virtual registers.
 
- at array = internal addrspace(3) constant [32 x [32 x float]] zeroinitializer, align 4
+ at array = internal addrspace(3) global [32 x [32 x float]] zeroinitializer, align 4
 
 define void @sum_of_array(i32 %x, i32 %y, float* nocapture %output) {
 .preheader:


        


More information about the llvm-commits mailing list