aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2021-03-24 17:48:27 +0000
committerAndrew Burgess <andrew.burgess@embecosm.com>2021-04-07 12:49:12 +0100
commit5e18990f1f2957e59fa4b62d64ed0cb683b65b58 (patch)
tree015550c82dc9c03756111ce968335798b474d872 /ld
parentefd86e5b0f756b04675e2ef7e26a64508300d9a8 (diff)
downloadgdb-5e18990f1f2957e59fa4b62d64ed0cb683b65b58.zip
gdb-5e18990f1f2957e59fa4b62d64ed0cb683b65b58.tar.gz
gdb-5e18990f1f2957e59fa4b62d64ed0cb683b65b58.tar.bz2
gdb: move cheap pointer equality check earlier in types_equal
I noticed that in types equal we start with a cheap pointer equality check, then resolve typedefs, then do a series of (semi-)expensive checks, including checking type names, before, finally performing another pointer equality check. We should hoist the second pointer equality check to immediately after we have resolved typedefs. This would save performing the more expensive checks. This isn't going to give any noticable performance improvement, I just spotted this in passing and figured I might as well commit the fix. There should be no user visible changes after this commit. gdb/ChangeLog: * gdbtypes.c (types_equal): Move pointer equality check earlier in the function.
Diffstat (limited to 'ld')
0 files changed, 0 insertions, 0 deletions