[llvm] r353750 - GlobalISel: Fix not calling the observer when legalizing G_EXTRACT
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 11 13:33:54 PST 2019
Author: arsenm
Date: Mon Feb 11 13:33:54 2019
New Revision: 353750
URL: http://llvm.org/viewvc/llvm-project?rev=353750&view=rev
Log:
GlobalISel: Fix not calling the observer when legalizing G_EXTRACT
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=353750&r1=353749&r2=353750&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/GlobalISel/LegalizerHelper.cpp (original)
+++ llvm/trunk/lib/CodeGen/GlobalISel/LegalizerHelper.cpp Mon Feb 11 13:33:54 2019
@@ -981,11 +981,13 @@ LegalizerHelper::widenScalar(MachineInst
if (Offset % SrcTy.getScalarSizeInBits() != 0)
return UnableToLegalize;
+ Observer.changingInstr(MI);
widenScalarSrc(MI, WideTy, 1, TargetOpcode::G_ANYEXT);
MI.getOperand(2).setImm((WideTy.getSizeInBits() / SrcTy.getSizeInBits()) *
Offset);
widenScalarDst(MI, WideTy.getScalarType(), 0);
+ Observer.changedInstr(MI);
return Legalized;
}
More information about the llvm-commits
mailing list