@@ -225,20 +225,6 @@ LogicalResult ProfileInfoDepot::populateProfileInfo(tosa::VariableWriteOp op) {
225
225
return success ();
226
226
}
227
227
228
- template <>
229
- LogicalResult ProfileInfoDepot::populateProfileInfo (tosa::IfOp op) {
230
- addValue (op.getCondition ());
231
- return success ();
232
- }
233
-
234
- template <>
235
- LogicalResult ProfileInfoDepot::populateProfileInfo (tosa::WhileOp op) {
236
- Block *block = &op.getCondGraph ().front ();
237
- Operation *terminator = block->getTerminator ();
238
- addValue (terminator->getOperands ().front ());
239
- return success ();
240
- }
241
-
242
228
LogicalResult ProfileInfoDepot::populatationDispatch (Operation *op) {
243
229
// This helper function only populates the info for the customised operands.
244
230
#define POPULATE_PROFILE_INFO_CUSTOM (tosaOp ) \
@@ -280,8 +266,6 @@ LogicalResult ProfileInfoDepot::populatationDispatch(Operation *op) {
280
266
POPULATE_PROFILE_INFO_CUSTOM (MatMul)
281
267
POPULATE_PROFILE_INFO_CUSTOM (Variable)
282
268
POPULATE_PROFILE_INFO_CUSTOM (VariableWrite)
283
- POPULATE_PROFILE_INFO_CUSTOM (If)
284
- POPULATE_PROFILE_INFO_CUSTOM (While)
285
269
286
270
// For the most of tosa operators, all operands are profile/extension related
287
271
// and hence are all considered in this profile-based compilance check.
@@ -340,6 +324,8 @@ LogicalResult ProfileInfoDepot::populatationDispatch(Operation *op) {
340
324
// constraint for those operations.
341
325
POPULATE_PROFILE_INFO_SKIP (ConstShape)
342
326
POPULATE_PROFILE_INFO_SKIP (Yield)
327
+ POPULATE_PROFILE_INFO_SKIP (If)
328
+ POPULATE_PROFILE_INFO_SKIP (While)
343
329
344
330
return failure ();
345
331
}
0 commit comments