This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/SI: Fix some invaild assumptions when folding 64-bit immediates
ClosedPublic

Authored by tstellarAMD on Aug 21 2015, 4:14 PM.

Details

Summary

We were assuming tha if the use operand had a sub-register that
the immediate was 64-bits, but this was breaking the case of
folding a 64-bit immediate into another 64-bit instruction.

Diff Detail

Repository
rL LLVM

Event Timeline

tstellarAMD retitled this revision from to AMDGPU/SI: Fix some invaild assumptions when folding 64-bit immediates.
tstellarAMD updated this object.
tstellarAMD added a reviewer: arsenm.
tstellarAMD added a subscriber: llvm-commits.
arsenm edited edge metadata.Aug 21 2015, 4:30 PM

Typo in commit message: tha

This needs a test

Typo in commit message: tha

This needs a test

I don't think there is any way to hit this bug now, but it is uncovered by the REG_SEQUENCE folding patch and covered by existing tests.

arsenm accepted this revision.Aug 27 2015, 10:05 PM
arsenm edited edge metadata.

LGTM

This revision is now accepted and ready to land.Aug 27 2015, 10:05 PM
This revision was automatically updated to reflect the committed changes.