summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-09-06 01:05:37 +0000
committerChris Lattner <sabre@nondot.org>2010-09-06 01:05:37 +0000
commitadc799112dc180b3cd099038c05101b85d217716 (patch)
tree02018ebd9cf6b13c0269ee684ef2c53527ccc945 /include
parent03d1063d3208378b2bf7c15f0ea0e90ff4defa87 (diff)
downloadllvm-adc799112dc180b3cd099038c05101b85d217716.tar.gz
llvm-adc799112dc180b3cd099038c05101b85d217716.tar.bz2
llvm-adc799112dc180b3cd099038c05101b85d217716.tar.xz
pull a simple method out of LICM into a new
Loop::hasLoopInvariantOperands method. Remove a useless and confusing Loop::isLoopInvariant(Instruction) method, which didn't do what you thought it did. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113133 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/LoopInfo.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/llvm/Analysis/LoopInfo.h b/include/llvm/Analysis/LoopInfo.h
index 462620f7e3..f034e6dbe7 100644
--- a/include/llvm/Analysis/LoopInfo.h
+++ b/include/llvm/Analysis/LoopInfo.h
@@ -523,10 +523,9 @@ public:
///
bool isLoopInvariant(Value *V) const;
- /// isLoopInvariant - Return true if the specified instruction is
- /// loop-invariant.
- ///
- bool isLoopInvariant(Instruction *I) const;
+ /// hasLoopInvariantOperands - Return true if all the operands of the
+ /// specified instruction are loop invariant.
+ bool hasLoopInvariantOperands(Instruction *I) const;
/// makeLoopInvariant - If the given value is an instruction inside of the
/// loop and it can be hoisted, do so to make it trivially loop-invariant.