[LLVMbugs] [Bug 13302] New: dropped SDNodeXForm in nested result patterns

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 9 07:50:30 PDT 2012


             Bug #: 13302
           Summary: dropped SDNodeXForm in nested result patterns
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: TableGen
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: flbr at imm.dtu.dk
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 8853
  --> http://llvm.org/bugs/attachment.cgi?id=8853
Small test case triggering the problem.

Calls to SDNodeXForm functions are dropped for nested result patterns. 

The transform functions are properly recognized during parsing and attached to
the respective TreePatternNodes. However, before finalizing the result pattern,
the transform functions of immediate children of the root are replaced by
dedicated xform-TreePatternNodes. This transformation is not done for nodes
further down inside the tree, e.g., when emitting nested instructions. The
DAGISelEmitter, for instance, relies on the explicit xform-TreePatternNodes and
ignores any transform functions attached to any other nodes. Consequently,
incorrect code is (silently) generated.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list