mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
[PatternMatch] Just check if value is a Constant before calling isAllOnesValue for not_match. We don't really need to check for a specific subclass of Constant. NFC
llvm-svn: 306236
This commit is contained in:
parent
5c0b0c6d4d
commit
95d973f08b
@ -946,10 +946,7 @@ template <typename LHS_t> struct not_match {
|
||||
|
||||
private:
|
||||
bool isAllOnes(Value *V) {
|
||||
return (isa<ConstantInt>(V) || isa<ConstantDataVector>(V) ||
|
||||
// FIXME: Remove CV.
|
||||
isa<ConstantVector>(V)) &&
|
||||
cast<Constant>(V)->isAllOnesValue();
|
||||
return isa<Constant>(V) && cast<Constant>(V)->isAllOnesValue();
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user