Chromium Code Reviews| Index: src/IceInstX86BaseImpl.h |
| diff --git a/src/IceInstX86BaseImpl.h b/src/IceInstX86BaseImpl.h |
| index cfc36d44a4fb3827d3329385015dc6de47a9631b..f5732cb974a8bf511ec0012a09334f2a191230c3 100644 |
| --- a/src/IceInstX86BaseImpl.h |
| +++ b/src/IceInstX86BaseImpl.h |
| @@ -2025,6 +2025,12 @@ template <typename TraitsType> |
| void InstImpl<TraitsType>::InstX86Lea::emit(const Cfg *Func) const { |
| if (!BuildDefs::dump()) |
| return; |
| + if (auto *Add = |
| + InstX86BaseUnaryopGPR<InstX86Base::Lea>::deoptLeaToAddOrNull(Func)) { |
|
Jim Stichnoth
2016/08/02 03:43:53
this->deoptLeaToAddOrNull(Func)
Seriously.
manasijm
2016/08/02 16:08:37
Works! Was 'misguided' by my IDE..
|
| + Add->emit(Func); |
| + return; |
| + } |
| + |
| Ostream &Str = Func->getContext()->getStrEmit(); |
| assert(this->getSrcSize() == 1); |
| assert(this->getDest()->hasReg()); |