[llvm] [DAG] fix wrong type check in DAGCombiner::visitSRA (PR #153762)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 17 00:45:38 PDT 2025
akiva-pripas wrote:
> I tried, but finding a case where `SIGN_EXTEND` to `TruncVT` is `LegalOrCustom` and `TRUNCATE` from VT is also `LegalOrCustom` (and still reaches instruction selection to trigger the error) feels like searching for a needle in a haystack. For a lit test, do you have any suggestions, @akiva-pripas, or would it make more sense to add a unit test instead, and if so, in which file?
The crash came from an out of tree target that I can't share, so I'm afraid I can't supply a test for it.
https://github.com/llvm/llvm-project/pull/153762
More information about the llvm-commits
mailing list