diff options
Diffstat (limited to 'llvm/lib/Transforms/Scalar/InstSimplifyPass.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/InstSimplifyPass.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstSimplifyPass.cpp b/llvm/lib/Transforms/Scalar/InstSimplifyPass.cpp index c31d0e74641..920b12b8a6a 100644 --- a/llvm/lib/Transforms/Scalar/InstSimplifyPass.cpp +++ b/llvm/lib/Transforms/Scalar/InstSimplifyPass.cpp @@ -45,6 +45,7 @@ static bool runImpl(Function &F, const SimplifyQuery &SQ, // Don't waste time simplifying dead/unused instructions. if (isInstructionTriviallyDead(&I)) { DeadInstsInBB.push_back(&I); + Changed = true; } else if (!I.use_empty()) { if (Value *V = SimplifyInstruction(&I, SQ, ORE)) { // Mark all uses for resimplification next time round the loop. |

