-
Notifications
You must be signed in to change notification settings - Fork 13.4k
[AMDGPU] LiveIntervals
is inaccurate after TwoAddressInstructionPass
#98741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
@llvm/issue-subscribers-backend-amdgpu Author: None (paperchalice)
There are some test failures in pull request #98632 when `LiveIntervals` analysis happens before `TwoAddressInstructionPass`, because `SIInstrInfo::convertToThreeAddress` doesn't handle live intervals after folding immediate values:
https://github.com/llvm/llvm-project/blob/ae63db78828621feca713016e33f34717da626a5/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp#L3949-L3961
The live interval of `DefReg` is no longer valid.
|
arsenm
added a commit
that referenced
this issue
Aug 16, 2024
arsenm
added a commit
that referenced
this issue
Aug 16, 2024
arsenm
added a commit
that referenced
this issue
Aug 19, 2024
arsenm
added a commit
that referenced
this issue
Sep 4, 2024
arsenm
added a commit
that referenced
this issue
Sep 6, 2024
arsenm
added a commit
that referenced
this issue
Sep 6, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are some test failures in pull request #98632 when
LiveIntervals
analysis happens beforeTwoAddressInstructionPass
, becauseSIInstrInfo::convertToThreeAddress
doesn't handle live intervals after folding immediate values:llvm-project/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
Lines 3949 to 3961 in ae63db7
The live interval of
DefReg
is no longer valid.In #66775,
-early-live-intervals
will not work when using-run-pass
, theLiveintervals LIS
inTwoAddressInstructionPass
isnullptr
when I debugging this part. A possible way to test-early-live-intervals
is using:but
llc
will crash.The text was updated successfully, but these errors were encountered: