Adds support for lowering non-splat shifts.
Details
Diff Detail
- Repository
- rL LLVM
- Build Status
Buildable 24469 Build 24468: arc lint + arc unit
Event Timeline
lib/Target/WebAssembly/WebAssemblyISelLowering.cpp | ||
---|---|---|
1075–1077 | 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? | |
1082 | On an unrelated note, maybe we can use this function again to conditionally expand extract_lane? | |
1084 | Do we have test cases for non-const splat? | |
1090–1091 | This isn't added in this CL, but we probably don't need this line after llvm_unreachable |
lib/Target/WebAssembly/WebAssemblyISelLowering.cpp | ||
---|---|---|
1072 | 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.