IR: Support parsing numeric block ids, and emit them in textual output.Just as as llvm IR supports explicitly specifying numeric value idsfor instructions, and emits them by default in textual out
IR: Support parsing numeric block ids, and emit them in textual output.Just as as llvm IR supports explicitly specifying numeric value idsfor instructions, and emits them by default in textual output, now dothe same for blocks.This is a slightly incompatible change in the textual IR format.Previously, llvm would parse numeric labels as string names. E.g. define void @f() { br label %"55" 55: ret void }defined a label *named* "55", even without needing to be quoted, whilethe reference required quoting. Now, if you intend a block label whichlooks like a value number to be a name, you must quote it in thedefinition too (e.g. `"55":`).Previously, llvm would print nameless blocks only as a comment, andwould omit it if there was no predecessor. This could cause confusionfor readers of the IR, just as unnamed instructions did prior to theaddition of "%5 = " syntax, back in 2008 (PR2480).Now, it will always print a label for an unnamed block, with theexception of the entry block. (IMO it may be better to print it forthe entry-block as well. However, that requires updating many moretests.)Thus, the following is supported, and is the canonical printing: define i32 @f(i32, i32) { %3 = add i32 %0, %1 br label %4 4: ret i32 %3 }New test cases covering this behavior are added, and other testsupdated as required.Differential Revision: https://reviews.llvm.org/D58548llvm-svn: 356789
show more ...
Another fix the testcase introduced by r261903 - Add the missing matchesllvm-svn: 261971
Use regex in testcase, do not fail windows botsllvm-svn: 261922
Introduce DominanceFrontierAnalysis to the new PassManager to compute DominanceFrontier. NFCDifferential Revision: http://reviews.llvm.org/D17570llvm-svn: 261903
Revert "Introduce DominanceFrontierAnalysis to the new PassManager to compute DominanceFrontier. NFC"This reverts commit 109c38b2226a87b0be73fa7a0a8c1a81df20aeb2.llvm-svn: 261890
Introduce DominanceFrontierAnalysis to the new PassManager to compute DominanceFrontier. NFCDifferential Revision: http://reviews.llvm.org/D17570llvm-svn: 261883