We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 760eefd commit 817fd98Copy full SHA for 817fd98
llvm/lib/Transforms/Scalar/Reg2Mem.cpp
@@ -125,9 +125,7 @@ bool RegToMemWrapperPass::runOnFunction(Function &F) {
125
126
unsigned N = SplitAllCriticalEdges(F, CriticalEdgeSplittingOptions(DT, LI));
127
bool Changed = runPass(F);
128
- if (N == 0 && !Changed)
129
- return false;
130
- return true;
+ return N != 0 || Changed;
131
}
132
133
FunctionPass *llvm::createRegToMemWrapperPass() {
0 commit comments