Index: src/IceInstX86BaseImpl.h |
diff --git a/src/IceInstX86BaseImpl.h b/src/IceInstX86BaseImpl.h |
index cfc36d44a4fb3827d3329385015dc6de47a9631b..4b9ea413a025de532d01eac48bd5f1d3c5f2d1c4 100644 |
--- a/src/IceInstX86BaseImpl.h |
+++ b/src/IceInstX86BaseImpl.h |
@@ -2025,6 +2025,11 @@ template <typename TraitsType> |
void InstImpl<TraitsType>::InstX86Lea::emit(const Cfg *Func) const { |
if (!BuildDefs::dump()) |
return; |
+ if (auto *Add = this->deoptLeaToAddOrNull(Func)) { |
+ Add->emit(Func); |
+ return; |
+ } |
+ |
Ostream &Str = Func->getContext()->getStrEmit(); |
assert(this->getSrcSize() == 1); |
assert(this->getDest()->hasReg()); |