Replace last{a,b}(splat(X)) with X, irrespective of the predicate.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
This seems like a nice improvement to me, thanks!
llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp | ||
---|---|---|
555 | The predicate is indeed irrelevant here, if all lanes of the predicate are inactive, then it would extract the first/last element. |
The predicate is indeed irrelevant here, if all lanes of the predicate are inactive, then it would extract the first/last element.