What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:

/kind bug
/kind task
/kind feature

What does this PR do / why do we need it:
Fix the inline pass problem in the switch pass. When there is a dead node or undetermined node in the branch, the inline pass may perform an inline clone and increase the number of subgraphs. This will cause the problem run slow or never end.

Which issue(s) this PR fixes:

Fixes #I49SH6:[CT][MS][control_flow]for in for stuck in forward
#I4A1FZ:[CT][MS][control_flow] for loop less than 10, get thousand subgraphs
#I4A43P

Special notes for your reviewers: