This is a follow on to D145108. This started as simply fixing the crash on an error case reported against that change, but I think this also ends up fixing the original reported issue (https://github.com/llvm/llvm-project/issues/49830) as well. More accurately, D145108 fixed the case where the cast resolves to an existing record, and this change fixes the case where the named record doesn't exist.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
but I think this also ends up fixing the original reported issue (https://github.com/llvm/llvm-project/issues/49830) as well
That would be awesome! +@Joe_Nash
Comment Actions
I'm not competent to review the implementation but it seems to work well for me. This will let us replace lots of instances of foreach _ = BoolToList<cond>.ret in ... with if cond then ... in AMDGPU backend tablegen files.
Comment Actions
This looks like it fixes 49830, and I agree with foad it is useful in the AMDGPU backend. Functionally LGTM! Thanks for working on it.