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 | fd05924946ebfcfb3409b21996cfd0836e4ddb31 (patch) | |
tree | 72c12deace7b040069b69109a7405311e0002581 /lib/Target/CBackend/CBackend.cpp | |
parent | 33922eb64811ac758b5ebd2bc79150298f57ba7b (diff) |
Decrease usage of use_size()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9135 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend/CBackend.cpp')
-rw-r--r-- | lib/Target/CBackend/CBackend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index a3607be8a0..af33e4b85f 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.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! |