[llvm] r352691 - [GlobalISel][LegalizerHelper] Add some missing MI change observer calls.
Amara Emerson via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 30 15:42:46 PST 2019
Author: aemerson
Date: Wed Jan 30 15:42:46 2019
New Revision: 352691
URL: http://llvm.org/viewvc/llvm-project?rev=352691&view=rev
Log:
[GlobalISel][LegalizerHelper] Add some missing MI change observer calls.
No test as it's a preventative fix.
Modified:
llvm/trunk/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
Modified: llvm/trunk/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/GlobalISel/LegalizerHelper.cpp?rev=352691&r1=352690&r2=352691&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/GlobalISel/LegalizerHelper.cpp (original)
+++ llvm/trunk/lib/CodeGen/GlobalISel/LegalizerHelper.cpp Wed Jan 30 15:42:46 2019
@@ -779,9 +779,11 @@ LegalizerHelper::LegalizeResult Legalize
case TargetOpcode::G_SHL:
case TargetOpcode::G_LSHR:
case TargetOpcode::G_ASHR: {
+ Observer.changingInstr(MI);
if (TypeIdx != 1)
return UnableToLegalize; // TODO
narrowScalarSrc(MI, NarrowTy, 2);
+ Observer.changedInstr(MI);
return Legalized;
}
}
More information about the llvm-commits
mailing list