diff options
| author | Chris Lattner <sabre@nondot.org> | 2011-04-17 00:54:30 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2011-04-17 00:54:30 +0000 |
| commit | bc204c8043167f52f6b7f7498f33fe2efc0c1854 (patch) | |
| tree | 65d629963f4cec36e9f6db5fba961366377d1cd1 /clang/lib/CodeGen/CodeGenFunction.h | |
| parent | 30107ed600da4cd3a5bbb5d70cd6e97b618fff38 (diff) | |
| download | llvm-bc204c8043167f52f6b7f7498f33fe2efc0c1854.zip llvm-bc204c8043167f52f6b7f7498f33fe2efc0c1854.tar.gz llvm-bc204c8043167f52f6b7f7498f33fe2efc0c1854.tar.bz2 | |
implement rdar://9289524 - case followed immediately by break results in empty IR block,
a -O0 code quality issue.
llvm-svn: 129652
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index fa86f05..913b5df 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -769,6 +769,11 @@ public: /// block through the normal cleanup handling code (if any) and then /// on to \arg Dest. void EmitBranchThroughCleanup(JumpDest Dest); + + /// isObviouslyBranchWithoutCleanups - Return true if a branch to the + /// specified destination obviously has no cleanups to run. 'false' is always + /// a conservatively correct answer for this method. + bool isObviouslyBranchWithoutCleanups(JumpDest Dest) const; /// EmitBranchThroughEHCleanup - Emit a branch from the current /// insert block through the EH cleanup handling code (if any) and |
