diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-04-19 03:46:51 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-04-19 03:46:51 +0000 |
| commit | 9695eb3239018647bcee02eba2f9f5b90904d1bc (patch) | |
| tree | 26863427e91eb8ea1687c05e725a87dda82dea1b /llvm/test/Bitcode | |
| parent | b41f33cf0212c73eeecc28972dbd461f23e46ce3 (diff) | |
| download | bcm5719-llvm-9695eb3239018647bcee02eba2f9f5b90904d1bc.tar.gz bcm5719-llvm-9695eb3239018647bcee02eba2f9f5b90904d1bc.zip | |
BitcodeWriter: Break recursion when enumerating Metadata, almost NFC
Use a worklist instead of recursing through MDNode operands in
ValueEnumerator. The actual record output order has changed slightly,
but otherwise there's no functionality change.
I had to update test/Bitcode/metadata-function-blocks.ll. I renumbered
nodes so they continue to match the implicit record ids.
llvm-svn: 266709
Diffstat (limited to 'llvm/test/Bitcode')
| -rw-r--r-- | llvm/test/Bitcode/metadata-function-blocks.ll | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/test/Bitcode/metadata-function-blocks.ll b/llvm/test/Bitcode/metadata-function-blocks.ll index f3e83c5074d..7b335f73313 100644 --- a/llvm/test/Bitcode/metadata-function-blocks.ll +++ b/llvm/test/Bitcode/metadata-function-blocks.ll @@ -19,14 +19,14 @@ ; Each node gets a new number. Bottom-up traversal of nodes. !named = !{!6} -; CHECK-NEXT: <NODE op0=1/> -!4 = !{!"named"} - ; CHECK-NEXT: <NODE op0=2/> -!5 = !{!"named and foo"} +!4 = !{!"named and foo"} + +; CHECK-NEXT: <NODE op0=1/> +!5 = !{!"named"} -; CHECK-NEXT: <NODE op0=1 op1=4 op2=5/> -!6 = !{!"named", !4, !5} +; CHECK-NEXT: <NODE op0=1 op1=5 op2=4/> +!6 = !{!"named", !5, !4} ; CHECK-NEXT: <NODE op0=3/> !7 = !{!"foo and bar"} |

