<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">So... Ny number were not exact because I was counting the creation of "Distinct" node that don't get uniqued.</div><div class=""><br class=""></div><div class="">Clang -g -O3 -disable-llvm-optzns -emit-llvm-bc (llvm/utils/TableGen/CodeGenDAGPatterns.cpp)</div><div class=""><br class=""></div><div class="">ConstantExpr<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 149/410 : <span class="Apple-tab-span" style="white-space:pre"> </span>36.34%<br class="">DIBasicType<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 0/17 : <span class="Apple-tab-span" style="white-space:pre"> </span>0.00%<br class="">DICompositeType<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 1/54 : <span class="Apple-tab-span" style="white-space:pre"> </span>1.85%<br class="">DIDerivedType<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 15066/27959 : <span class="Apple-tab-span" style="white-space:pre"> </span>53.89%<br class="">DIEnumerator<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 91/285 : <span class="Apple-tab-span" style="white-space:pre"> </span>31.93%<br class="">DIExpression<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 7056/7058 : <span class="Apple-tab-span" style="white-space:pre"> </span>99.97%<br class="">DIFile<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 1969/2064 : <span class="Apple-tab-span" style="white-space:pre"> </span>95.40%<br class="">DIImportedEntity<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 0/357 : <span class="Apple-tab-span" style="white-space:pre"> </span>0.00%<br class="">DILocalVariable<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 0/7058 : <span class="Apple-tab-span" style="white-space:pre"> </span>0.00%<br class="">DINamespace<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 0/7 : <span class="Apple-tab-span" style="white-space:pre"> </span> <span class="Apple-tab-span" style="white-space:pre"> </span>0.00%<br class="">DISubprogram<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 0/14357 : <span class="Apple-tab-span" style="white-space:pre"> </span>0.00%<br class="">DISubrange<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 17/33 : <span class="Apple-tab-span" style="white-space:pre"> </span>51.52%<br class="">DISubroutineType<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 6415/26549 : <span class="Apple-tab-span" style="white-space:pre"> </span>24.16%<br class="">DITemplateTypeParameter<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 3279/5101 : <span class="Apple-tab-span" style="white-space:pre"> </span>64.28%<br class="">DITemplateValueParameter<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 857/923 : <span class="Apple-tab-span" style="white-space:pre"> </span>92.85%<br class=""><br class=""></div><div class="">Clang -g -O3 -emit-obj (llvm/utils/TableGen/CodeGenDAGPatterns.cpp)</div><div class=""><br class=""></div><div class="">ConstantExpr<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 7475/8067 : <span class="Apple-tab-span" style="white-space:pre"> </span>92.66%<br class="">ConstantVector<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 26/28 : <span class="Apple-tab-span" style="white-space:pre"> </span>92.86%<br class="">DIBasicType<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 0/17 : <span class="Apple-tab-span" style="white-space:pre"> </span>0.00%<br class="">DICompositeType<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 1/54 : <span class="Apple-tab-span" style="white-space:pre"> </span>1.85%<br class="">DIDerivedType<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 15066/27959 : <span class="Apple-tab-span" style="white-space:pre"> </span>53.89%<br class="">DIEnumerator<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 91/285 : <span class="Apple-tab-span" style="white-space:pre"> </span>31.93%<br class="">DIExpression<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 8415/8427 : <span class="Apple-tab-span" style="white-space:pre"> </span>99.86%<br class="">DIFile<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 1969/2064 : <span class="Apple-tab-span" style="white-space:pre"> </span>95.40%<br class="">DIImportedEntity<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 0/357 : <span class="Apple-tab-span" style="white-space:pre"> </span>0.00%<br class="">DILocalVariable<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 0/7058 : <span class="Apple-tab-span" style="white-space:pre"> </span>0.00%<br class="">DINamespace<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 0/7 : <span class="Apple-tab-span" style="white-space:pre"> </span> <span class="Apple-tab-span" style="white-space:pre"> </span>0.00%<br class="">DISubprogram<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 0/14357 : <span class="Apple-tab-span" style="white-space:pre"> </span>0.00%<br class="">DISubrange<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 17/33 : <span class="Apple-tab-span" style="white-space:pre"> </span>51.52%<br class="">DISubroutineType<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 6415/26549 : <span class="Apple-tab-span" style="white-space:pre"> </span>24.16%<br class="">DITemplateTypeParameter<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 3279/5101 : <span class="Apple-tab-span" style="white-space:pre"> </span>64.28%<br class="">DITemplateValueParameter<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 857/923 : <span class="Apple-tab-span" style="white-space:pre"> </span>92.85%<br class=""><br class=""></div><div class=""><br class=""></div><div class="">ThinLTO linking of llvm-tblgen:</div><div class=""><br class=""></div><div class="">InlineAsm<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 0/3 : <span class="Apple-tab-span" style="white-space:pre"> </span>0.00%<br class="">ConstantExpr<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 239332/290442 : <span class="Apple-tab-span" style="white-space:pre"> </span>82.40%<br class="">ConstantVector<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 0/3 : <span class="Apple-tab-span" style="white-space:pre"> </span>0.00%<br class="">ConstantStruct<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 926/4358 : <span class="Apple-tab-span" style="white-space:pre"> </span>21.25%<br class="">ConstantArray<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 16/7220 : <span class="Apple-tab-span" style="white-space:pre"> </span>0.22%<br class="">DIBasicType<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 9925/11266 : <span class="Apple-tab-span" style="white-space:pre"> </span>88.10%<br class="">DICompositeType<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 292888/580812 : <span class="Apple-tab-span" style="white-space:pre"> </span>50.43%<br class="">DIDerivedType<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 1598581/2988731 : <span class="Apple-tab-span" style="white-space:pre"> </span>53.49%<br class="">DIEnumerator<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 43205/61266 : <span class="Apple-tab-span" style="white-space:pre"> </span>70.52%<br class="">DIExpression<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 10321/10587 : <span class="Apple-tab-span" style="white-space:pre"> </span>97.49%<br class="">DIFile<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 36515/47098 : <span class="Apple-tab-span" style="white-space:pre"> </span>77.53%<br class="">DIGlobalVariable<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 8/2909 : <span class="Apple-tab-span" style="white-space:pre"> </span> <span class="Apple-tab-span" style="white-space:pre"> </span>0.28%<br class="">DIImportedEntity<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 199881/230511 : <span class="Apple-tab-span" style="white-space:pre"> </span>86.71%<br class="">DILexicalBlockFile<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 0/8 : <span class="Apple-tab-span" style="white-space:pre"> </span> <span class="Apple-tab-span" style="white-space:pre"> </span>0.00%<br class="">DILocalVariable<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 0/1278068 : <span class="Apple-tab-span" style="white-space:pre"> </span>0.00%<br class="">DINamespace<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 2591/4333 : <span class="Apple-tab-span" style="white-space:pre"> </span>59.80%<br class="">DISubprogram<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 1990502/3453290 : <span class="Apple-tab-span" style="white-space:pre"> </span>57.64%<br class="">DISubrange<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 4935/6912 : <span class="Apple-tab-span" style="white-space:pre"> </span>71.40%<br class="">DISubroutineType<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 1472612/2668017 : <span class="Apple-tab-span" style="white-space:pre"> </span>55.19%<br class="">DITemplateTypeParameter<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 179795/363685 : <span class="Apple-tab-span" style="white-space:pre"> </span>49.44%<br class="">DITemplateValueParameter<span class="Apple-tab-span" style="white-space:pre"> </span>Hit rate: 13736/25394 : <span class="Apple-tab-span" style="white-space:pre"> </span>54.09%<br class=""><br class=""></div><div class=""><br class=""></div><div class="">Patch attached, you need to run clang without "disable-free" (I run "clang -v" and copy/paste the cc1 command line without -disable-free, I haven't found a driver option for that).</div><div class=""><br class=""></div><div class=""></div></body></html>