Add shl/srl/sra to the list of ops that we canonicalize with a select to expose an identity merge
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | ||
---|---|---|
2167 | Can it apply to ROTL/ROTR ? |
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | ||
---|---|---|
2167 | Yes, we'd have to account for the implicit modulo though. There's plenty of other ops we could attempt with this as well, including some non-binops (funnel shifts and fma for instance) - I'm also wondering what target binops will need to be supported. |
Can it apply to ROTL/ROTR ?