diff options
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
-rw-r--r-- | llvm/lib/Analysis/ValueTracking.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp index f54de03..6e039ad 100644 --- a/llvm/lib/Analysis/ValueTracking.cpp +++ b/llvm/lib/Analysis/ValueTracking.cpp @@ -5274,8 +5274,9 @@ void computeKnownFPClass(const Value *V, const APInt &DemandedElts, } // reverse preserves all characteristics of the input vec's element. case Intrinsic::vector_reverse: - Known = computeKnownFPClass(II->getArgOperand(0), II->getFastMathFlags(), - InterestedClasses, Depth + 1, Q); + Known = computeKnownFPClass( + II->getArgOperand(0), DemandedElts.reverseBits(), + II->getFastMathFlags(), InterestedClasses, Depth + 1, Q); break; case Intrinsic::trunc: case Intrinsic::floor: |