diff options
| author | Chris Lattner <sabre@nondot.org> | 2003-10-15 16:48:29 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2003-10-15 16:48:29 +0000 |
| commit | f95d9b99b3ca878e11d7615e7462507237ae3610 (patch) | |
| tree | b4b3a40acb2fe3a80579836f97035a54d7c6d25b /llvm/lib/CWriter/Writer.cpp | |
| parent | 30c715b30b5d0611e44da860764846a83598a583 (diff) | |
| download | bcm5719-llvm-f95d9b99b3ca878e11d7615e7462507237ae3610.tar.gz bcm5719-llvm-f95d9b99b3ca878e11d7615e7462507237ae3610.zip | |
Decrease usage of use_size()
llvm-svn: 9135
Diffstat (limited to 'llvm/lib/CWriter/Writer.cpp')
| -rw-r--r-- | llvm/lib/CWriter/Writer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CWriter/Writer.cpp b/llvm/lib/CWriter/Writer.cpp index a3607be8a0f..af33e4b85fb 100644 --- a/llvm/lib/CWriter/Writer.cpp +++ b/llvm/lib/CWriter/Writer.cpp @@ -88,7 +88,7 @@ namespace { static bool isInlinableInst(const Instruction &I) { // Must be an expression, must be used exactly once. If it is dead, we // emit it inline where it would go. - if (I.getType() == Type::VoidTy || I.use_size() != 1 || + if (I.getType() == Type::VoidTy || !I.hasOneUse() || isa<TerminatorInst>(I) || isa<CallInst>(I) || isa<PHINode>(I) || isa<LoadInst>(I) || isa<VarArgInst>(I)) // Don't inline a load across a store or other bad things! |

