summaryrefslogtreecommitdiffstats
path: root/llvm/docs/tutorial/LangImpl3.rst
diff options
context:
space:
mode:
authorJF Bastien <jfb@google.com>2015-08-26 03:02:58 +0000
committerJF Bastien <jfb@google.com>2015-08-26 03:02:58 +0000
commit9dc042a0b62c817412a2f0fbddcab7b2f953aec8 (patch)
tree73d76634c95487e1bf9676480e7be245aa500efa /llvm/docs/tutorial/LangImpl3.rst
parentd020c65d249ec8fd759608c26e10693e127962fe (diff)
downloadbcm5719-llvm-9dc042a0b62c817412a2f0fbddcab7b2f953aec8.tar.gz
bcm5719-llvm-9dc042a0b62c817412a2f0fbddcab7b2f953aec8.zip
Comparing operands should not require the same ValueID
Summary: When comparing basic blocks, there is an additional check that two Value*'s should have the same ID, which interferes with merging equivalent constants of different kinds (such as a ConstantInt and a ConstantPointerNull in the included testcase). The cmpValues function already ensures that the two values in each function are the same, so removing this check should not cause incorrect merging. Also, the type comparison is redundant, based on reviewing the code and testing on the test suite and several large LTO bitcodes. Author: jrkoenig Reviewers: nlewycky, jfb, dschuff Subscribers: llvm-commits Differential revision: http://reviews.llvm.org/D12302 llvm-svn: 246001
Diffstat (limited to 'llvm/docs/tutorial/LangImpl3.rst')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud