Fix removeUnusedLoopResult some more.
Fix removeUnusedLoopResult some more.

CulpaBS/wbBach,mrakgr/futhark,HIPERFIT/futhark,diku-dk/futhark,diku-dk/futhark,ihc/futhark,HIPERFIT/futhark,diku-dk/futhark,diku-dk/futhark,ihc/futhark,mrakgr/futhark,ihc/futhark,HIPERFIT/futhark,mrakgr/futhark,diku-dk/futhark