<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/95157>95157</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            valgrind error in llvm::hasVectorizeTransformation
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            test-suite,
            code-quality,
            llvm
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          dcb314
      </td>
    </tr>
</table>

<pre>
    From the clang testsuite at clang/test, file ./CodeGenCXX/pragma-loop-pr27643.cpp
does this with recent clang++:

$ valgrind --trace-children=yes -q ~/llvm/results/bin/clang++ -c -w -O1 ./CodeGenCXX/pragma-loop-pr27643.cpp
==52393== Conditional jump or move depends on uninitialised value(s)
==52393==    at 0x25A19AB: operator==<int, int> (optional:1362)
==52393==    by 0x25A19AB: llvm::hasVectorizeTransformation(llvm::Loop const*) (LoopUtils.cpp:406)
==52393==    by 0x5E1227D: warnAboutLeftoverTransformations(llvm::Loop*, llvm::OptimizationRemarkEmitter*) (WarnMissedTransforms.cpp:48)
==52393== by 0x5E12DAF: warnAboutLeftoverTransformations (WarnMissedTransforms.cpp:88)



</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUlE9vozoUxT-N2VhE-BoSWLCgSXmbPlV6en-6NfgmuM_Y1DbppIv57COTUZJqNJ2OhAxcXZ3785GPhffqYBBrUtyRYpeIOQzW1bLvOMuTzspT3To70jAg7bUwBxrQBz-rgFSEc4lAG4sEtnSvNNIVgXZrJf6BZvv0RKCdnDiMItXWTunkYLPO-aqfJpLtSNZIi56GQXn6qsJAHfZoLsJ38eHNufP7Cjk9Cn1wykiapsGJHtN-UFo6NITvTuhp-kK_Emi1Po4EWod-1sETaDtlCLQ32jTtafpK00f2m9SE7wjfFcArfv6kW2ukCsoaoenzPE7UOjraI1KJExrpqTV0NsqooIRWHmXcxYwESk-g-pkqpdHm7AsUDaua6AW1EzoRrDt3EL5VZvE-vvg9JVDa6cxBeMP4Gj6W707v5RfTeEN4Mwj_L_bBOvWGfzth_N66UURpAuW17cHaifbWxBPQEKgiQaz9E5T2i2O8ybP1JyiKewaw2UWKV-FM09k5POA-2CO69wD-B4Jl9vaG_nEKalRvS_tfOAr3__2oQkB3pfxPOPOn8h7lRf0CXH7Ae4HdNe1nYH8xq7yZdbMmsuay4pVIsGYbVjKoqjJPhhqhEHK_z3q57jjKAism9oUo9xyZKPI8UTVkkGdrxljJqpytOo7rXnQl7zdZVRSM5BmOQulVtGtl3SFR3s9YVwUrNokWHWq_3AgAMdnpkncCQGBLAHorMX2ZhVbhdCmeswbxDnF1_Em7-eBJnmnlg78OCiporC8BRueso8p86tgls9P1EMLkYye0BNqDCsPcrXo7XvO-TJ-cfcY-EGiXrcX0n3d3rOFbAAAA___zgYgA">