<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I'd like to understand the order in which patterns are searched during ISEL. In the example below, indices are searched in ascending order from 808 to 3305, then it goes back to 3259 and eventually it matches the wrong instruction. Why did go back from 3305
 to 3259? In my XXXGenDAGISel.inc, I can see that the correct instruction is at index 3420 but it never got there.<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>ISEL: Starting pattern match<br>
</span>
<div>  Skipped scope entry (due to false predicate) at index 3, continuing at 808<br>
</div>
<div>  Skipped scope entry (due to false predicate) at index 809, continuing at 865<br>
</div>
<div>  Skipped scope entry (due to false predicate) at index 867, continuing at 1091<br>
</div>
<div>  Skipped scope entry (due to false predicate) at index 1093, continuing at 1578<br>
</div>
<div>  Skipped scope entry (due to false predicate) at index 1579, continuing at 1605<br>
</div>
<div>  Skipped scope entry (due to false predicate) at index 1606, continuing at 1668<br>
</div>
<div>  Skipped scope entry (due to false predicate) at index 1670, continuing at 2369<br>
</div>
<div>  Skipped scope entry (due to false predicate) at index 2370, continuing at 2397<br>
</div>
<div>  Skipped scope entry (due to false predicate) at index 2398, continuing at 2451<br>
</div>
<div>  Skipped scope entry (due to false predicate) at index 2452, continuing at 2562<br>
</div>
<div>  Skipped scope entry (due to false predicate) at index 2563, continuing at 2641<br>
</div>
<div>  Skipped scope entry (due to false predicate) at index 2642, continuing at 2669<br>
</div>
<div>  Skipped scope entry (due to false predicate) at index 2670, continuing at 2696<br>
</div>
<div>  Skipped scope entry (due to false predicate) at index 2697, continuing at 2779<br>
</div>
<div>  Skipped scope entry (due to false predicate) at index 2780, continuing at 2835<br>
</div>
<div>  Skipped scope entry (due to false predicate) at index 2836, continuing at 2891<br>
</div>
<div>  Skipped scope entry (due to false predicate) at index 2892, continuing at 2947<br>
</div>
<div>  Skipped scope entry (due to false predicate) at index 2948, continuing at 2999<br>
</div>
<div>  Skipped scope entry (due to false predicate) at index 3000, continuing at 3032<br>
</div>
<div>  Skipped scope entry (due to false predicate) at index 3033, continuing at 3053<br>
</div>
<div>  Skipped scope entry (due to false predicate) at index 3054, continuing at 3085<br>
</div>
<div>  Skipped scope entry (due to false predicate) at index 3086, continuing at 3114<br>
</div>
<div>  Skipped scope entry (due to false predicate) at index 3115, continuing at 3171<br>
</div>
<div>  Skipped scope entry (due to false predicate) at index 3172, continuing at 3201<br>
</div>
<div>  Skipped scope entry (due to false predicate) at index 3202, continuing at 3253<br>
</div>
<div>  Skipped scope entry (due to false predicate) at index 3261, continuing at 3272<br>
</div>
<div>  Skipped scope entry (due to false predicate) at index 3273, continuing at 3284<br>
</div>
<div>  Skipped scope entry (due to false predicate) at index 3285, continuing at 3305<br>
</div>
<div>  Match failed at index 3259<br>
</div>
<div>  Continuing at 3306<br>
</div>
<div>  Match failed at index 3307<br>
</div>
<div>  Continuing at 3327<br>
</div>
<div>  Match failed at index 3328<br>
</div>
<div>  Continuing at 3361<br>
</div>
<div>  Morphed node: t17: i32 = MOVRR t17<br>
</div>
<div>ISEL: Match complete!<br>
</div>
<span></span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks.<br>
</div>
</body>
</html>