summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp
diff options
context:
space:
mode:
authorBjorn Pettersson <bjorn.a.pettersson@ericsson.com>2016-12-19 11:20:57 +0000
committerBjorn Pettersson <bjorn.a.pettersson@ericsson.com>2016-12-19 11:20:57 +0000
commitb29a15ecad3f1374827820db66bd872dae89ee0e (patch)
treee2b995f546db95813efd0345e690152ea632bc9d /llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp
parent7aacf468c013cd8a4e5cb25ba10d231f0c22ccdd (diff)
downloadbcm5719-llvm-b29a15ecad3f1374827820db66bd872dae89ee0e.tar.gz
bcm5719-llvm-b29a15ecad3f1374827820db66bd872dae89ee0e.zip
[CodeGen] Make MachineInstr::isIdenticalTo() symmetric.
Summary: MachineInstr::isIdenticalTo() is for some reason not symmetric when comparing bundles, which gives us the property: I1->isIdenticalTo(*I2) != I2->isIdenticalTo(*I1) when comparing bundles where one bundle is longer than the other. This patch makes sure that bundles of different length always are considered as not being identical. Thus, the result of the comparison will be the same regardless of which side that happens to be to the left. Reviewers: dexonsmith, jonpa, andrew.w.kaylor Subscribers: llvm-commits, mehdi_amini Differential Revision: https://reviews.llvm.org/D27508 llvm-svn: 290095
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud