diff options
author | ManuelJBrito <manuel.brito@tecnico.ulisboa.pt> | 2023-04-27 16:22:57 +0100 |
---|---|---|
committer | ManuelJBrito <manuel.brito@tecnico.ulisboa.pt> | 2023-04-27 18:01:54 +0100 |
commit | d22edb9794245b7b37490b9f40bd66130d8cf3b7 (patch) | |
tree | 81402fd831a3665af8c5c304de081744ae795d35 /llvm/lib/Analysis/ValueTracking.cpp | |
parent | 1e743732e7879bed2f8cbc1a875569a3a5e147d8 (diff) | |
download | llvm-d22edb9794245b7b37490b9f40bd66130d8cf3b7.zip llvm-d22edb9794245b7b37490b9f40bd66130d8cf3b7.tar.gz llvm-d22edb9794245b7b37490b9f40bd66130d8cf3b7.tar.bz2 |
[IR][NFC] Change UndefMaskElem to PoisonMaskElem
Following the change in shufflevector semantics,
poison will be used to represent undefined elements in shufflevector masks.
Differential Revision: https://reviews.llvm.org/D149256
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
-rw-r--r-- | llvm/lib/Analysis/ValueTracking.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp index 35f5bb7..028920c 100644 --- a/llvm/lib/Analysis/ValueTracking.cpp +++ b/llvm/lib/Analysis/ValueTracking.cpp @@ -6438,7 +6438,7 @@ static bool canCreateUndefOrPoison(const Operator *Op, bool PoisonOnly, ArrayRef<int> Mask = isa<ConstantExpr>(Op) ? cast<ConstantExpr>(Op)->getShuffleMask() : cast<ShuffleVectorInst>(Op)->getShuffleMask(); - return is_contained(Mask, UndefMaskElem); + return is_contained(Mask, PoisonMaskElem); } case Instruction::FNeg: case Instruction::PHI: |