Diff Detail
Diff Detail
Event Timeline
| llvm/lib/CodeGen/GlobalISel/Utils.cpp | ||
|---|---|---|
| 655 | What does it mean for a build_vector to be a known power of 2? Each element is *any* power of 2, or the vector is a splat of a power of 2? | |
| llvm/lib/CodeGen/GlobalISel/Utils.cpp | ||
|---|---|---|
| 655 | All are any power of 2 regardless of the individual values | |
| llvm/lib/CodeGen/GlobalISel/Utils.cpp | ||
|---|---|---|
| 655 | I looked again at the DAG version, and it only considers constants. I'm thinking G_BUILD_VECTOR_TRUNC may not be correct in cases where the power of 2 bit is discarded | |
What does it mean for a build_vector to be a known power of 2? Each element is *any* power of 2, or the vector is a splat of a power of 2?