From 94dc4766dbbe45d7e0307bb29a902e5077fc2218 Mon Sep 17 00:00:00 2001 From: "William S. Moses" Date: Mon, 4 Nov 2024 09:31:57 -0500 Subject: [PATCH] fix --- enzyme/Enzyme/JLInstSimplify.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/enzyme/Enzyme/JLInstSimplify.cpp b/enzyme/Enzyme/JLInstSimplify.cpp index 4df7ca2d3ec..18e8b386d31 100644 --- a/enzyme/Enzyme/JLInstSimplify.cpp +++ b/enzyme/Enzyme/JLInstSimplify.cpp @@ -224,8 +224,9 @@ bool jlInstSimplify(llvm::Function &F, TargetLibraryInfo &TLI, } auto llhs = dyn_cast(lhs); auto lrhs = dyn_cast(rhs); - if (llhs && lrhs && isa(llhs->getType()) && - isa(lrhs->getType())) { + if (llhs && lrhs && + (isa(llhs->getType()) || isa(llhs->getType())) && + (isa(lrhs->getType()) || isa(lrhs->getType()))) { auto lhsv = getBaseObject(llhs->getOperand(0), /*offsetAllowed*/ false); auto rhsv =