aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2021-06-25 16:38:41 -0700
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2021-06-28 12:53:36 -0700
commitb0d27eb069159e21c3b62cdf011937739950eafc (patch)
tree43919b22f4516e9128fbe05e15eed46d2b82f0be /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent61242c0addb120294211d24a97ed89837418cb36 (diff)
downloadllvm-b0d27eb069159e21c3b62cdf011937739950eafc.zip
llvm-b0d27eb069159e21c3b62cdf011937739950eafc.tar.gz
llvm-b0d27eb069159e21c3b62cdf011937739950eafc.tar.bz2
IR: Fix use-list-order round-tripping for br
Fix the use-list-order for br instructions by setting the operands in order of their index to match the use-list-order prediction. The case where this matters is when there is a condition but the if-true and if-false branches are identical. Bug was found when reviewing failures pointed at by https://reviews.llvm.org/D104950. Fix is similar to 3cf415c6c367ced43175ebd1dc4bd9582c7f5376. Differential Revision: https://reviews.llvm.org/D104959
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions