I figured this one was worthy of an extra set of eyes despite being reasonable straight forward code wise. While the patch does exactly what the subject says, the motivation is really to simplify a follow on patch (https://reviews.llvm.org/D51458). I'm legitimately unsure if it makes sense to land this in isolation, or just role it into the combined patch.
Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/Transforms/Utils/SimplifyCFG.cpp | ||
---|---|---|
2694 | What if the predecessor block has more than one successor? You'll end up moving loads and other dangerous instruction across conditional branches. |
Comment Actions
Oh, I've misread what function that was. If both branches go to the same block then it should be fine.
lib/Transforms/Utils/SimplifyCFG.cpp | ||
---|---|---|
2694 | I've misread what method was that, my bad. :) This should be fine. |
What if the predecessor block has more than one successor? You'll end up moving loads and other dangerous instruction across conditional branches.