(TTA) Fix issues on matrice multiplication app
- wrong exit condition
- prevent some wild optimization from llvm