summaryrefslogtreecommitdiff
path: root/polly/lib
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2022-08-09 04:06:52 +0000
committerFangrui Song <i@maskray.me>2022-08-09 04:06:52 +0000
commit0972a390b9c74cd994ad0250cf392aecb67502a3 (patch)
treedbfde26a6814965adbe72973f4b840bee78e8f43 /polly/lib
parentfc63c0542c8d6e5be07e059d03a73ae77f5155aa (diff)
downloadllvm-0972a390b9c74cd994ad0250cf392aecb67502a3.tar.gz
LLVM_FALLTHROUGH => [[fallthrough]]. NFC
Diffstat (limited to 'polly/lib')
-rw-r--r--polly/lib/Analysis/ScopBuilder.cpp8
-rw-r--r--polly/lib/Analysis/ScopDetection.cpp2
-rw-r--r--polly/lib/Support/VirtualInstruction.cpp2
-rw-r--r--polly/lib/Transform/ForwardOpTree.cpp2
4 files changed, 7 insertions, 7 deletions
diff --git a/polly/lib/Analysis/ScopBuilder.cpp b/polly/lib/Analysis/ScopBuilder.cpp
index ab8e5adc2397..1817797fc579 100644
--- a/polly/lib/Analysis/ScopBuilder.cpp
+++ b/polly/lib/Analysis/ScopBuilder.cpp
@@ -1655,7 +1655,7 @@ bool ScopBuilder::buildAccessCallInst(MemAccInst Inst, ScopStmt *Stmt) {
return true;
case FMRB_OnlyReadsArgumentPointees:
ReadOnly = true;
- LLVM_FALLTHROUGH;
+ [[fallthrough]];
case FMRB_OnlyWritesArgumentPointees:
case FMRB_OnlyAccessesArgumentPointees: {
auto AccType = ReadOnly ? MemoryAccess::READ : MemoryAccess::MAY_WRITE;
@@ -2385,7 +2385,7 @@ void ScopBuilder::ensureValueRead(Value *V, ScopStmt *UserStmt) {
if (!ModelReadOnlyScalars)
break;
- LLVM_FALLTHROUGH;
+ [[fallthrough]];
case VirtualUse::Inter:
// Do not create another MemoryAccess for reloading the value if one already
@@ -2482,7 +2482,7 @@ static MemoryAccess::ReductionType getReductionType(const BinaryOperator *BinOp,
case Instruction::FAdd:
if (!BinOp->isFast())
return MemoryAccess::RT_NONE;
- LLVM_FALLTHROUGH;
+ [[fallthrough]];
case Instruction::Add:
return MemoryAccess::RT_ADD;
case Instruction::Or:
@@ -2494,7 +2494,7 @@ static MemoryAccess::ReductionType getReductionType(const BinaryOperator *BinOp,
case Instruction::FMul:
if (!BinOp->isFast())
return MemoryAccess::RT_NONE;
- LLVM_FALLTHROUGH;
+ [[fallthrough]];
case Instruction::Mul:
if (DisableMultiplicativeReductions)
return MemoryAccess::RT_NONE;
diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp
index e22f8bd41a1b..99e93966b21e 100644
--- a/polly/lib/Analysis/ScopDetection.cpp
+++ b/polly/lib/Analysis/ScopDetection.cpp
@@ -783,7 +783,7 @@ bool ScopDetection::isValidIntrinsicInst(IntrinsicInst &II,
if (!isValidAccess(&II, AF, BP, Context))
return false;
}
- LLVM_FALLTHROUGH;
+ [[fallthrough]];
case Intrinsic::memset:
AF = SE.getSCEVAtScope(cast<MemIntrinsic>(II).getDest(), L);
if (!AF->isZero()) {
diff --git a/polly/lib/Support/VirtualInstruction.cpp b/polly/lib/Support/VirtualInstruction.cpp
index 07f8ff54324b..e570d8d54649 100644
--- a/polly/lib/Support/VirtualInstruction.cpp
+++ b/polly/lib/Support/VirtualInstruction.cpp
@@ -300,7 +300,7 @@ static void walkReachable(Scop *S, LoopInfo *LI,
// enabled.
if (!VUse.getMemoryAccess())
break;
- LLVM_FALLTHROUGH;
+ [[fallthrough]];
case VirtualUse::Inter:
assert(VUse.getMemoryAccess());
WorklistAccs.push_back(VUse.getMemoryAccess());
diff --git a/polly/lib/Transform/ForwardOpTree.cpp b/polly/lib/Transform/ForwardOpTree.cpp
index fd4052f57a43..2bed3e35412d 100644
--- a/polly/lib/Transform/ForwardOpTree.cpp
+++ b/polly/lib/Transform/ForwardOpTree.cpp
@@ -801,7 +801,7 @@ public:
// reuse the information about UseStmt for DefStmt
DefStmt = UseStmt;
- LLVM_FALLTHROUGH;
+ [[fallthrough]];
case VirtualUse::Inter:
Instruction *Inst = cast<Instruction>(UseVal);