Revert D29399533: Hoisting common expressions out of If blocks
Test Plan: revert-hammer
Differential Revision:
D29399533 (https://github.com/pytorch/pytorch/commit/9477211e7d609ce382c0e22d7721c14c36d083de)
Original commit changeset: 9336b9dc48c0
fbshipit-source-id: f081c7280203f40328bcbb0c03a7c6a007acedb7