Only match trunc for now, as integrating into the SimplifyDemandedBits proved to be a significant challenge.
Details
Diff Detail
- Repository
- rL LLVM
- Build Status
Buildable 39166 Build 39177: arc lint + arc unit
Event Timeline
lib/CodeGen/SelectionDAG/DAGCombiner.cpp | ||
---|---|---|
548 | The change to returning SDValue looks like an NFC that you can do right away? |
lib/CodeGen/SelectionDAG/DAGCombiner.cpp | ||
---|---|---|
548 | I can do that, indeed. Let me land this part and rebase. |
lib/CodeGen/SelectionDAG/DAGCombiner.cpp | ||
---|---|---|
6135 | That wouldn't generate the proper pattern for vectors and would leave things such as only the last element is demanded. |
Add test for vector - but nothing changes for them (see rL374043 ) and use isSubsetOf and getAllOnesValue.
The change to returning SDValue looks like an NFC that you can do right away?