aboutsummaryrefslogtreecommitdiff
path: root/polly
diff options
context:
space:
mode:
authorJeremy Morse <jeremy.morse@sony.com>2024-03-05 15:48:15 +0000
committerJeremy Morse <jeremy.morse@sony.com>2024-03-05 17:00:12 +0000
commitf33f66be7dc586a597437d7ce7619d87e8637209 (patch)
treed656bb0e5d428ac175d0bb44148f7341cdbfb41c /polly
parent1e828f838cc0f15074f3dbbb04929c06ef0c9729 (diff)
downloadllvm-f33f66be7dc586a597437d7ce7619d87e8637209.zip
llvm-f33f66be7dc586a597437d7ce7619d87e8637209.tar.gz
llvm-f33f66be7dc586a597437d7ce7619d87e8637209.tar.bz2
[NFC][RemoveDIs] Always use iterators for inserting PHIs
It's becoming potentially unsafe to insert a PHI instruction using a plain Instruction pointer. Switch all the remaining sites that create and insert PHIs to use iterators instead. For example, the code in ComplexDeinterleavingPass.cpp is definitely at-risk of mixing PHIs and debug-info.
Diffstat (limited to 'polly')
-rw-r--r--polly/lib/CodeGen/BlockGenerators.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/polly/lib/CodeGen/BlockGenerators.cpp b/polly/lib/CodeGen/BlockGenerators.cpp
index 3de1781..da0e503 100644
--- a/polly/lib/CodeGen/BlockGenerators.cpp
+++ b/polly/lib/CodeGen/BlockGenerators.cpp
@@ -1234,7 +1234,7 @@ PHINode *RegionGenerator::buildExitPHI(MemoryAccess *MA, LoopToScevMapT &LTS,
PHINode *NewPHI = PHINode::Create(OrigPHI->getType(), Incoming.size(),
"polly." + OrigPHI->getName(),
- NewSubregionExit->getFirstNonPHI());
+ NewSubregionExit->getFirstNonPHIIt());
// Add the incoming values to the PHI.
for (auto &Pair : Incoming) {