mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-18 16:03:17 +00:00
Simplify the ZIV tester to the max.
As suggested by Nick Lewycky. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78277 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e90acceb50
commit
6151f67285
@ -144,9 +144,8 @@ LoopDependenceAnalysis::DependenceResult
|
||||
LoopDependenceAnalysis::analyseZIV(const SCEV *A,
|
||||
const SCEV *B,
|
||||
Subscript *S) const {
|
||||
assert(isZIVPair(A, B));
|
||||
const SCEV *diff = SE->getMinusSCEV(A, B);
|
||||
return diff->isZero() ? Dependent : Independent;
|
||||
assert(isZIVPair(A, B) && "Attempted to ZIV-test non-ZIV SCEVs!");
|
||||
return A == B ? Dependent : Independent;
|
||||
}
|
||||
|
||||
LoopDependenceAnalysis::DependenceResult
|
||||
|
Loading…
x
Reference in New Issue
Block a user