Skip to content

Commit

Permalink
[Vectorize] Use std::conditional_t (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata committed Oct 15, 2022
1 parent bfb0b6f commit b2f41e9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Expand Up @@ -325,8 +325,7 @@ template <bool IsPoisonOnly = false>
static SmallBitVector isUndefVector(const Value *V,
ArrayRef<int> ShuffleMask = None) {
SmallBitVector Res(ShuffleMask.empty() ? 1 : ShuffleMask.size(), true);
using T =
typename std::conditional<IsPoisonOnly, PoisonValue, UndefValue>::type;
using T = std::conditional_t<IsPoisonOnly, PoisonValue, UndefValue>;
if (isa<T>(V))
return Res;
auto *VecTy = dyn_cast<FixedVectorType>(V->getType());
Expand Down

0 comments on commit b2f41e9

Please sign in to comment.