aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/ConstantFold.cpp
diff options
context:
space:
mode:
authorPaul Walker <paul.walker@arm.com>2024-05-14 15:52:07 +0000
committerPaul Walker <paul.walker@arm.com>2024-05-17 10:37:26 +0000
commit37c6b9ff7245a76056ca3363bdef4e593e7e6c9d (patch)
treee8378620e8671c3c36b2aac82f450332fec7c602 /llvm/lib/IR/ConstantFold.cpp
parent4349ffb3fa268dba180b7c65fdce20a0be60272b (diff)
downloadllvm-37c6b9ff7245a76056ca3363bdef4e593e7e6c9d.zip
llvm-37c6b9ff7245a76056ca3363bdef4e593e7e6c9d.tar.gz
llvm-37c6b9ff7245a76056ca3363bdef4e593e7e6c9d.tar.bz2
[NFC][LLVM] Mainly whitespace changes.
Also marks AliasSetTracker::size() as const.
Diffstat (limited to 'llvm/lib/IR/ConstantFold.cpp')
-rw-r--r--llvm/lib/IR/ConstantFold.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/IR/ConstantFold.cpp b/llvm/lib/IR/ConstantFold.cpp
index a766b1f..4622ad7 100644
--- a/llvm/lib/IR/ConstantFold.cpp
+++ b/llvm/lib/IR/ConstantFold.cpp
@@ -542,6 +542,7 @@ Constant *llvm::ConstantFoldShuffleVectorInstruction(Constant *V1, Constant *V2,
} else if (!MaskEltCount.isScalable())
return ConstantVector::getSplat(MaskEltCount, Elt);
}
+
// Do not iterate on scalable vector. The num of elements is unknown at
// compile-time.
if (isa<ScalableVectorType>(V1VTy))