Only do the suspend check at return and loop latch.

Change-Id: I0c7d2b25288bfb85dfc8a0650b75aff2162f9903
diff --git a/src/compiler_llvm/compiler_llvm.cc b/src/compiler_llvm/compiler_llvm.cc
index 681b367..dce7f91 100644
--- a/src/compiler_llvm/compiler_llvm.cc
+++ b/src/compiler_llvm/compiler_llvm.cc
@@ -178,7 +178,7 @@
   // Write bitcode to file when filename is set
   if (IsBitcodeFileNameAvailable()) {
     const size_t cunit_idx = cunits_.size();
-    cunit->WriteBitcodeToFile(
+    cunit->SetBitcodeFileName(
       StringPrintf("%s-%zu", bitcode_filename_.c_str(), cunit_idx));
   }