After recent patch D30189, #64323's error message become a new one.
When DAGCombiner was optimizing (vextract (scalar_to_vector val, 0) -> val, it didn't
consider the possibility that the inserted value type has less bit than the dest type.
This patch fixes that.
Details
Details
- Reviewers
pengfei RKSimon - Commits
- rGf58fbfc74673: [X86][CodeGen] Add a dag pattern to fix #64323
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | ||
---|---|---|
21705–21708 | The comments need update. | |
21714 | Do not use else when the previous condition ends with return. | |
21716 | ditto. |
llvm/test/CodeGen/X86/pr64323.ll | ||
---|---|---|
6 | nounwind to reduce cfi noise |
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | ||
---|---|---|
21714 | you can also just remove second if entirely. |
The comments need update.