diff --git a/enzyme/Enzyme/JLInstSimplify.cpp b/enzyme/Enzyme/JLInstSimplify.cpp index f0d29f0f856..36f7d21095e 100644 --- a/enzyme/Enzyme/JLInstSimplify.cpp +++ b/enzyme/Enzyme/JLInstSimplify.cpp @@ -108,11 +108,7 @@ bool jlInstSimplify(llvm::Function &F, TargetLibraryInfo &TLI, if (auto alias = arePointersGuaranteedNoAlias( TLI, AA, LI, I.getOperand(0), I.getOperand(1), false)) { -#if LLVM_VERSION_MAJOR >= 16 - bool val = alias.value(); -#else - bool val = alias.getValue(); -#endif + bool val = *alias; auto repval = ICmpInst::isTrueWhenEqual(pred) ? ConstantInt::get(I.getType(), 1 - val) : ConstantInt::get(I.getType(), val); diff --git a/enzyme/Enzyme/Utils.cpp b/enzyme/Enzyme/Utils.cpp index 90907d96dec..bfdee67dd7f 100644 --- a/enzyme/Enzyme/Utils.cpp +++ b/enzyme/Enzyme/Utils.cpp @@ -2307,11 +2307,7 @@ bool overwritesToMemoryReadBy(const TypeResults *TR, llvm::AAResults &AA, if (loadPtr && storePtr) if (auto alias = arePointersGuaranteedNoAlias(TLI, AA, LI, loadPtr, storePtr, true)) -#if LLVM_VERSION_MAJOR >= 16 - if (alias.value()) -#else - if (alias.getValue()) -#endif + if (*alias) return false; if (!overwritesToMemoryReadByLoop(SE, LI, DT, maybeReader, LoadBegin, LoadEnd,