[llvm] 0795ab4 - [InstCombine] Remove unnecessary RUN line from test (NFC)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 9 05:57:44 PDT 2024


Author: Nikita Popov
Date: 2024-08-09T14:57:35+02:00
New Revision: 0795ab4eba14b7a93c52c06f328c3d4272f3c51e

URL: https://github.com/llvm/llvm-project/commit/0795ab4eba14b7a93c52c06f328c3d4272f3c51e
DIFF: https://github.com/llvm/llvm-project/commit/0795ab4eba14b7a93c52c06f328c3d4272f3c51e.diff

LOG: [InstCombine] Remove unnecessary RUN line from test (NFC)

As all the necessary information is encoded using attributes
nowadays, this test doesn't actually depend on the triple
anymore.

Added: 
    

Modified: 
    llvm/test/Transforms/InstCombine/deref-alloc-fns.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/InstCombine/deref-alloc-fns.ll b/llvm/test/Transforms/InstCombine/deref-alloc-fns.ll
index 80b25711122f5..bb46ce02313ac 100644
--- a/llvm/test/Transforms/InstCombine/deref-alloc-fns.ll
+++ b/llvm/test/Transforms/InstCombine/deref-alloc-fns.ll
@@ -1,7 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -passes=instcombine  -S < %s | FileCheck %s
-; RUN: opt -mtriple=x86_64-unknown-linux-gnu < %s -passes=instcombine -S | FileCheck %s --check-prefixes=CHECK,GNU
-
+; RUN: opt -passes=instcombine -S < %s | FileCheck %s
 
 declare noalias ptr @malloc(i64) allockind("alloc,uninitialized") allocsize(0) "alloc-family"="malloc"
 declare noalias ptr @calloc(i64, i64) allockind("alloc,zeroed") allocsize(0,1) "alloc-family"="malloc"
@@ -96,19 +94,19 @@ define noalias ptr @aligned_alloc_dynamic_args(i64 %align, i64 %size) {
 }
 
 define noalias ptr @memalign_constant_size() {
-; GNU-LABEL: @memalign_constant_size(
-; GNU-NEXT:    [[CALL:%.*]] = tail call noalias align 32 dereferenceable_or_null(512) ptr @memalign(i64 32, i64 512)
-; GNU-NEXT:    ret ptr [[CALL]]
+; CHECK-LABEL: @memalign_constant_size(
+; CHECK-NEXT:    [[CALL:%.*]] = tail call noalias align 32 dereferenceable_or_null(512) ptr @memalign(i64 32, i64 512)
+; CHECK-NEXT:    ret ptr [[CALL]]
 ;
   %call = tail call noalias ptr @memalign(i64 32, i64 512)
   ret ptr %call
 }
 
 define noalias ptr @memalign_unknown_size_nonzero(i1 %c) {
-; GNU-LABEL: @memalign_unknown_size_nonzero(
-; GNU-NEXT:    [[SIZE:%.*]] = select i1 [[C:%.*]], i64 64, i64 128
-; GNU-NEXT:    [[CALL:%.*]] = tail call noalias align 32 ptr @memalign(i64 32, i64 [[SIZE]])
-; GNU-NEXT:    ret ptr [[CALL]]
+; CHECK-LABEL: @memalign_unknown_size_nonzero(
+; CHECK-NEXT:    [[SIZE:%.*]] = select i1 [[C:%.*]], i64 64, i64 128
+; CHECK-NEXT:    [[CALL:%.*]] = tail call noalias align 32 ptr @memalign(i64 32, i64 [[SIZE]])
+; CHECK-NEXT:    ret ptr [[CALL]]
 ;
   %size = select i1 %c, i64 64, i64 128
   %call = tail call noalias ptr @memalign(i64 32, i64 %size)
@@ -116,10 +114,10 @@ define noalias ptr @memalign_unknown_size_nonzero(i1 %c) {
 }
 
 define noalias ptr @memalign_unknown_size_possibly_zero(i1 %c) {
-; GNU-LABEL: @memalign_unknown_size_possibly_zero(
-; GNU-NEXT:    [[SIZE:%.*]] = select i1 [[C:%.*]], i64 64, i64 0
-; GNU-NEXT:    [[CALL:%.*]] = tail call noalias align 32 ptr @memalign(i64 32, i64 [[SIZE]])
-; GNU-NEXT:    ret ptr [[CALL]]
+; CHECK-LABEL: @memalign_unknown_size_possibly_zero(
+; CHECK-NEXT:    [[SIZE:%.*]] = select i1 [[C:%.*]], i64 64, i64 0
+; CHECK-NEXT:    [[CALL:%.*]] = tail call noalias align 32 ptr @memalign(i64 32, i64 [[SIZE]])
+; CHECK-NEXT:    ret ptr [[CALL]]
 ;
   %size = select i1 %c, i64 64, i64 0
   %call = tail call noalias ptr @memalign(i64 32, i64 %size)
@@ -127,9 +125,9 @@ define noalias ptr @memalign_unknown_size_possibly_zero(i1 %c) {
 }
 
 define noalias ptr @memalign_unknown_align(i64 %align) {
-; GNU-LABEL: @memalign_unknown_align(
-; GNU-NEXT:    [[CALL:%.*]] = tail call noalias dereferenceable_or_null(128) ptr @memalign(i64 [[ALIGN:%.*]], i64 128)
-; GNU-NEXT:    ret ptr [[CALL]]
+; CHECK-LABEL: @memalign_unknown_align(
+; CHECK-NEXT:    [[CALL:%.*]] = tail call noalias dereferenceable_or_null(128) ptr @memalign(i64 [[ALIGN:%.*]], i64 128)
+; CHECK-NEXT:    ret ptr [[CALL]]
 ;
   %call = tail call noalias ptr @memalign(i64 %align, i64 128)
   ret ptr %call


        


More information about the llvm-commits mailing list