Adds support for lowering non-splat shifts.
Details
Diff Detail
- Repository
- rL LLVM
- Build Status
Buildable 24116 Build 24115: arc lint + arc unit
Event Timeline
lib/Target/WebAssembly/WebAssemblyISelLowering.cpp | ||
---|---|---|
1041–1043 | We did setOperationAction to Custom only for vector types, so is there a case this if can be satisfied? How about changing this to an assertion this is a vector type? | |
1048 | On an unrelated note, maybe we can use this function again to conditionally expand extract_lane? | |
1050 | Do we have test cases for non-const splat? | |
1057 | This isn't added in this CL, but we probably don't need this line after llvm_unreachable |
lib/Target/WebAssembly/WebAssemblyISelLowering.cpp | ||
---|---|---|
1035 | This comment is confusing, because it sounds like i64x2 non-const splats are not handled by patterns. But by looking at the code, it looks like
So the only case we use the custom logic below is i64x2 const splat, right? I think the comment says otherwise. |
This comment is confusing, because it sounds like i64x2 non-const splats are not handled by patterns. But by looking at the code, it looks like
So the only case we use the custom logic below is i64x2 const splat, right? I think the comment says otherwise.