[REG2.065a] Issue 11596 - Internal error: backend/cgcs.c 351

https://d.puremagic.com/issues/show_bug.cgi?id=11596

Revert *wrong* refactoring for `e2ir.c` caused by #2702.