Skip to content

Conversation

@jorickert
Copy link

No description provided.

tbaederr and others added 12 commits January 18, 2025 06:18
…lvm#123440)

The function called find_if and converted the iterator to an index.
The caller then had to check the index being non-zero to know if the
find succeeded.

Seems better to just do the find and distance in the caller.
/llvm-project/llvm/utils/TableGen/Common/CodeGenSchedule.cpp:1704:32:
 error: unused variable 'Seq' [-Werror,-Wunused-variable]
    SmallVectorImpl<unsigned> &Seq =
                               ^
/llvm-project/llvm/utils/TableGen/Common/CodeGenSchedule.cpp:1713:32:
 error: unused variable 'Seq' [-Werror,-Wunused-variable]
    SmallVectorImpl<unsigned> &Seq =
                               ^
2 errors generated.
I'm not adding tests for this, as I don't think we usually have tests to
verify correct description of defs and uses in instructions?

This fix will be tested when llvm#122304 lands, as one of the regression
tests in that PR fails without this fix.
…store node (llvm#123366)

mayFoldIntoStore currently just checks the direct (oneuse) user of a
SDValue to check its stored, which prevents cases where we bitcast the
value prior to storing (usually the bitcast will be removed later).

This patch peeks up through oneuse BITCAST nodes chain to see if its
eventually stored.

The main use of mayFoldIntoStore is v8i16 EXTRACT_VECTOR_ELT lowering
which will only use PEXTRW/PEXTRB for index0 extractions (vs the faster
MOVD) if the extracted value will be folded into a store on SSE41+
targets.

Fixes llvm#107086
@jorickert jorickert requested a review from mgehre-amd April 25, 2025 09:54
@jorickert jorickert enabled auto-merge April 25, 2025 09:54
@jorickert jorickert merged commit 983aa59 into feature/fused-ops Apr 25, 2025
4 of 5 checks passed
@jorickert jorickert deleted the bump_to_67c3f2b4 branch April 25, 2025 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.