Skip to content

[XCore] assertion rematerialising LDWSP instruction #3696

@llvmbot

Description

@llvmbot
Bugzilla Link 3324
Resolution FIXED
Resolved on Jan 14, 2009 12:34
Version 1.0
OS Linux
Reporter LLVM Bugzilla Contributor

Extended Description

In the target description LDWSP implicitly uses the SP register. This causes LiveIntervals to assert when rematerialising stack slot loads with the following code:

define double @​f1(double %a, double %b, double %c, double %d, double %e, double %f, double %g) nounwind {
entry:
br i1 false, label %bb113, label %bb129

bb113: ; preds = %entry
ret double 0.000000e+00

bb129: ; preds = %entry
%tmp134 = sub double %b, %a ; [#uses=1]
%tmp136 = sub double %tmp134, %c ; [#uses=1]
%tmp138 = add double %tmp136, %d ; [#uses=1]
%tmp140 = sub double %tmp138, %e ; [#uses=1]
%tmp142 = add double %tmp140, %f ; [#uses=1]
%tmp.0 = mul double %tmp142, 0.000000e+00 ; [#uses=1]
ret double %tmp.0
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions