This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Fix crash with undef vreg input operand
ClosedPublic

Authored by arsenm on Jun 19 2017, 6:44 PM.

Details

Reviewers
rampitec

Diff Detail

Event Timeline

arsenm created this revision.Jun 19 2017, 6:44 PM
rampitec added inline comments.Jun 19 2017, 6:49 PM
lib/Target/AMDGPU/SIFoldOperands.cpp
472

getUniqueVRegDef?

arsenm added inline comments.Jun 19 2017, 7:09 PM
lib/Target/AMDGPU/SIFoldOperands.cpp
472

I think that should only ever be used post-SSA. This is an SSA pass, so the concern isn't whether or not there are multiple defs of the same register

rampitec added inline comments.Jun 19 2017, 7:13 PM
lib/Target/AMDGPU/SIFoldOperands.cpp
472

If works fine past SSA in general, so I believe it is better to fix that as well.

arsenm added inline comments.Jun 19 2017, 7:17 PM
lib/Target/AMDGPU/SIFoldOperands.cpp
472

I'm not sure what you mean. I don't think it works post-SSA. Changing that belongs as a separate change if that ends up being useful

rampitec accepted this revision.Jun 19 2017, 7:25 PM

OK, let's agree on a separate change when needed.

This revision is now accepted and ready to land.Jun 19 2017, 7:25 PM
arsenm closed this revision.Jun 20 2017, 11:28 AM

r305814