mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
Change ScalarEvolution::getSCEVAtScope to always return the original value
in the case where a loop exit value cannot be computed, instead of only in some cases while using SCEVCouldNotCompute in others. This simplifies getSCEVAtScope's callers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72375 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -490,8 +490,8 @@ namespace llvm {
|
||||
/// This method can be used to compute the exit value for a variable defined
|
||||
/// in a loop by querying what the value will hold in the parent loop.
|
||||
///
|
||||
/// If this value is not computable at this scope, a SCEVCouldNotCompute
|
||||
/// object is returned.
|
||||
/// In the case that a relevant loop exit value cannot be computed, the
|
||||
/// original value V is returned.
|
||||
SCEVHandle getSCEVAtScope(const SCEV *S, const Loop *L);
|
||||
|
||||
/// getSCEVAtScope - This is a convenience function which does
|
||||
|
||||
Reference in New Issue
Block a user