We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6550181 commit b1ce672Copy full SHA for b1ce672
clang/lib/CIR/Dialect/IR/CIRDialect.cpp
@@ -1609,11 +1609,8 @@ OpFoldResult cir::VecShuffleOp::fold(FoldAdaptor adaptor) {
1609
}
1610
1611
uint64_t idxValue = idxAttr.getUInt();
1612
- if (idxValue < vec1Size) {
1613
- elements.push_back(vec1Elts[idxValue]);
1614
- } else {
1615
- elements.push_back(vec2Elts[idxValue - vec1Size]);
1616
- }
+ elements.push_back(idxValue < vec1Size ? vec1Elts[idxValue]
+ : vec2Elts[idxValue - vec1Size]);
1617
1618
1619
return cir::ConstVectorAttr::get(
0 commit comments