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 | ||
---|---|---|
21707–21710 | The comments need update. | |
21716 | Do not use else when the previous condition ends with return. | |
21718 | ditto. |
llvm/test/CodeGen/X86/pr64323.ll | ||
---|---|---|
6 | nounwind to reduce cfi noise |
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | ||
---|---|---|
21716 | you can also just remove second if entirely. |
The comments need update.