From 50ee0f44cf2773eee6854a6a85e1a796a17d4e17 Mon Sep 17 00:00:00 2001 From: "William S. Moses" Date: Sun, 22 Dec 2024 22:56:54 -0500 Subject: [PATCH] fix --- enzyme/Enzyme/GradientUtils.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/enzyme/Enzyme/GradientUtils.cpp b/enzyme/Enzyme/GradientUtils.cpp index c169365371a..57dc3951038 100644 --- a/enzyme/Enzyme/GradientUtils.cpp +++ b/enzyme/Enzyme/GradientUtils.cpp @@ -3822,6 +3822,9 @@ bool GradientUtils::legalRecompute(const Value *val, } } + if (isa(val)) + return false; + if (auto phi = dyn_cast(val)) { if (auto uiv = hasUninverted(val)) { if (auto dli = dyn_cast_or_null(uiv)) {