[llvm] [PowerPC] Fix vector_shuffle combines when inputs are scalar_to_vector of differing types. (PR #80784)

Kai Nacke via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 1 10:43:17 PDT 2024


================
@@ -15286,6 +15288,25 @@ static SDValue getSToVPermuted(SDValue OrigSToV, SelectionDAG &DAG,
                      OrigSToV.getOperand(0));
 }
 
+static bool isShuffleMaskInRange(const SmallVectorImpl<int> &ShuffV,
+                                 int HalfVec, int LHSLastElementDefined,
+                                 int RHSLastElementDefined) {
+  for (int i : seq<int>(0, ShuffV.size())) {
----------------
redstar wrote:

Same as above:
```suggestion
  for (int I : seq<int>(0, ShuffV.size())) {
```

https://github.com/llvm/llvm-project/pull/80784


More information about the llvm-commits mailing list