From ad3c490f066ba5955f8c133084f58122310d221c Mon Sep 17 00:00:00 2001 From: Alex Richardson Date: Mon, 3 Mar 2025 14:48:55 -0800 Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20change?= =?UTF-8?q?s=20to=20main=20this=20commit=20is=20based=20on?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Created using spr 1.3.6-beta.1 [skip ci] --- llvm/lib/Transforms/IPO/LowerTypeTests.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/llvm/lib/Transforms/IPO/LowerTypeTests.cpp b/llvm/lib/Transforms/IPO/LowerTypeTests.cpp index e3caefe70311b..85cfa42fdc94f 100644 --- a/llvm/lib/Transforms/IPO/LowerTypeTests.cpp +++ b/llvm/lib/Transforms/IPO/LowerTypeTests.cpp @@ -1847,6 +1847,10 @@ LowerTypeTestsModule::LowerTypeTestsModule( auto &FAM = AM.getResult(M).getManager(); for (Function &F : M) { + // Skip intrinsics since we should not query the TTI for them. + // TODO: Can we skip all declarations and only look at definitions? + if (F.isIntrinsic()) + continue; auto &TTI = FAM.getResult(F); if (TTI.hasArmWideBranch(false)) CanUseArmJumpTable = true;