[llvm] f7eb522 - [ConstantHoisting] Limit checks to assertion message.

Alina Sbirlea via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 14 11:35:26 PDT 2023


Author: Alina Sbirlea
Date: 2023-08-14T11:21:01-07:00
New Revision: f7eb5222acd9f1296d2172dcbf1153082940092c

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

LOG: [ConstantHoisting] Limit checks to assertion message.

The word "Assertion" is not necessarily present. Limit the checks to the
assertion message.

Added: 
    

Modified: 
    llvm/test/Transforms/ConstantHoisting/X86/pr52689-not-all-uses-rebased.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/ConstantHoisting/X86/pr52689-not-all-uses-rebased.ll b/llvm/test/Transforms/ConstantHoisting/X86/pr52689-not-all-uses-rebased.ll
index 2941583594656d..88ba4d3562c826 100644
--- a/llvm/test/Transforms/ConstantHoisting/X86/pr52689-not-all-uses-rebased.ll
+++ b/llvm/test/Transforms/ConstantHoisting/X86/pr52689-not-all-uses-rebased.ll
@@ -10,8 +10,7 @@
 ;
 ; opt: ../lib/Transforms/Scalar/ConstantHoisting.cpp:919: bool llvm::ConstantHoistingPass::emitBaseConstants(llvm::GlobalVariable *): Assertion `UsesNum == (ReBasesNum + NotRebasedNum) && "Not all uses are rebased"' failed.
 
-; CHECK: Assertion
-; CHECK-SAME: UsesNum == (ReBasesNum + NotRebasedNum)
+; CHECK: UsesNum == (ReBasesNum + NotRebasedNum)
 ; CHECK-SAME: Not all uses are rebased
 
 @g_77 = external global [5 x i32]


        


More information about the llvm-commits mailing list