Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6024

[drlvm][jit] Incorrect generated instruction in peephole opt for MOV

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: DRLVM
    • Labels:
      None
    • Environment:
      IA32 Windows

      Description

      In the case 1 of peephole opt for MOV in Ia32PeepHole.cpp, the optimization is like following:

      MOV opnd, opnd2
      MOV opnd3, opnd
      =>
      MOV opnd3, opnd2

      The bug is the new MOV instruction is always generated by "newInst" even the original MOV instructions are both pseudo copy, which will cause an assertion error later.

        Attachments

        1. H6024-V1.patch
          3 kB
          Xiaoming Gu

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                xiaoming Xiaoming Gu
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated: