Catalysis of the formation of both isopentenyl pyrophosphate and dimethylallyl pyrophosphate from (E)-4-hydroxy-3-methyl-but-2-enyl pyrophosphate.
(E)-4-hydroxy-3-methyl-but-2-enyl pyrophosphate reductase (IPP and DMAPP forming)