[llvm] 986029c - [Transforms] Fix i8 alignment in datalayout of lit test

Jannik Silvanus via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 20 06:53:07 PST 2023


Author: Jannik Silvanus
Date: 2023-01-20T15:52:07+01:00
New Revision: 986029c1640a5fa9ce2fa3becab0538168858741

URL: https://github.com/llvm/llvm-project/commit/986029c1640a5fa9ce2fa3becab0538168858741
DIFF: https://github.com/llvm/llvm-project/commit/986029c1640a5fa9ce2fa3becab0538168858741.diff

LOG: [Transforms] Fix i8 alignment in datalayout of lit test

A lit test used overaligned i8, apparently due to an old copy-paste
error, intending to specify i16 alignment.

Change the datalayout string to use naturally aligned i8.

Added: 
    

Modified: 
    llvm/test/Transforms/IndVarSimplify/dangling-use.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/IndVarSimplify/dangling-use.ll b/llvm/test/Transforms/IndVarSimplify/dangling-use.ll
index 89d48ea7f8058..780873be8bf46 100644
--- a/llvm/test/Transforms/IndVarSimplify/dangling-use.ll
+++ b/llvm/test/Transforms/IndVarSimplify/dangling-use.ll
@@ -1,6 +1,6 @@
 ; RUN: opt -passes=indvars -disable-output < %s
 
-target datalayout = "E-p:32:32:32-i1:8:8-i8:8:8-i8:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f128:64:128-n32"
+target datalayout = "E-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f128:64:128-n32"
 target triple = "powerpc-unknown-linux-gnu"
 
 define void @vec_inverse_5_7_vert_loop_copyseparate(ptr %x, i32 %n, i32 %rowbytes) nounwind {


        


More information about the llvm-commits mailing list