@@ -128,13 +128,11 @@ export const ProfilingView = ({data, onClose}) => {
128128 leftChildren . forEach ( ( op ) => {
129129 if ( op && op . id ) {
130130 const related = goDownDirect ( op . id , rightDiffBaseRef , layerInfo )
131- console . log ( op . id , "related" , related )
132131 if ( related . length === 0 ) {
133132 leftBackground [ op . id ] = "lightgray"
134133 }
135134 if ( related . length === 1 ) {
136135 const same = opSameExceptLocAndChildren ( leftOps [ op . id ] , rightOps [ related [ 0 ] ] , valueMapping , true )
137- console . log ( "compare" , leftOps [ op . id ] , rightOps [ related [ 0 ] ] , same )
138136 if ( ! same ) {
139137 leftBackground [ op . id ] = "#ffebba"
140138 } else {
@@ -153,13 +151,11 @@ export const ProfilingView = ({data, onClose}) => {
153151 rightChildren . forEach ( ( op ) => {
154152 if ( op && op . id ) {
155153 const related = goUpDirect ( op . id , leftDiffBaseRef , layerInfo )
156- console . log ( op . id , "related" , related )
157154 if ( related . length === 0 ) {
158155 rightBackground [ op . id ] = "lightgray"
159156 }
160157 if ( related . length === 1 ) {
161158 const same = opSameExceptLocAndChildren ( leftOps [ related [ 0 ] ] , rightOps [ op . id ] , valueMapping , true )
162- console . log ( "compare" , rightOps [ op . id ] , leftOps [ related [ 0 ] ] , same )
163159 if ( ! same ) {
164160 rightBackground [ op . id ] = "#ffebba"
165161 } else {
@@ -173,7 +169,6 @@ export const ProfilingView = ({data, onClose}) => {
173169 } )
174170 setLeftDiffBackground ( leftBackground )
175171 setRightDiffBackground ( rightBackground )
176- console . log ( "left" , leftBackground )
177172 }
178173
179174
@@ -200,7 +195,6 @@ export const ProfilingView = ({data, onClose}) => {
200195 displayedLayers . forEach ( ( l ) => {
201196 if ( l . idx && selectedLayer !== l . idx ) {
202197 const baseRef = getBaseReference ( data . layers [ l . idx ] . passInfo . file )
203- console . log ( "baseRef" , baseRef , "goingDown" , selectedLayer < l . idx , selectedLayer , l . index )
204198 const relatedOps = selectedLayer < l . idx ? goDown ( selectedOp , baseRef , layerInfo ) : goUp ( selectedOp , baseRef , layerInfo )
205199 l . fn ( relatedOps )
206200 } else if ( l . idx ) {
@@ -210,15 +204,14 @@ export const ProfilingView = ({data, onClose}) => {
210204 }
211205 } , [ data , layerInfo , relalgMLIRData , subopMLIRData , imperativeMLIRData , llvmMLIRData , selectedOp , selectedLayer ] )
212206 useEffect ( ( ) => {
213- if ( selectedOp && selectedLayer ) {
207+ if ( selectedOp && selectedLayer && leftDiffIndex && rightDiffIndex ) {
214208 const displayedLayers = [ { idx : leftDiffIndex , fn : setSelectedLeftOps } , {
215209 idx : rightDiffIndex ,
216210 fn : setSelectedRightOps
217211 } ]
218212 displayedLayers . forEach ( ( l ) => {
219213 if ( l . idx && selectedLayer !== l . idx ) {
220214 const baseRef = getBaseReference ( data . layers [ l . idx ] . passInfo . file )
221- console . log ( "baseRef" , baseRef , "goingDown" , selectedLayer < l . idx , selectedLayer , l . index )
222215 const relatedOps = selectedLayer < l . idx ? goDown ( selectedOp , baseRef , layerInfo ) : goUp ( selectedOp , baseRef , layerInfo )
223216 l . fn ( relatedOps )
224217 } else if ( l . idx ) {
@@ -262,7 +255,6 @@ export const ProfilingView = ({data, onClose}) => {
262255 }
263256 const handleInstrClick = ( instr ) => {
264257 if ( instr . loc ) {
265- console . log ( "selected llvm" , [ instr . loc ] )
266258 const op = instr . loc
267259 handleLLVMOpSelection ( op )
268260
0 commit comments