Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

llvm_util: strip redundant splat-handling code (NFC) #1120

Closed
wants to merge 1 commit into from

Conversation

artagnon
Copy link
Contributor

The splat-handling code in llvm_util's getOperand is a special case of the code that handles aggregates, calling fillAggregateValues. Hence, strip the code, with no functional changes.

The splat-handling code in llvm_util's getOperand is a special case of
the code that handles aggregates, calling fillAggregateValues. Hence,
strip the code, with no functional changes.
@nunoplopes
Copy link
Member

This patches makes Alive2 crash with 3 LLVM tests:

Transforms/InstCombine/bitcast.ll
Transforms/InstSimplify/bitcast-vector-fold.ll
Transforms/InstSimplify/extract-element.ll

Please this kind of patches with LLVM's unit tests.

@nunoplopes nunoplopes closed this Nov 29, 2024
@artagnon artagnon deleted the strip-redundant branch November 29, 2024 11:04
@artagnon
Copy link
Contributor Author

Please this kind of patches with LLVM's unit tests.

Is there a test target I can run to test it against LLVM's unit tests?

@nunoplopes
Copy link
Member

https://github.com/AliveToolkit/alive2?tab=readme-ov-file#building-and-running-translation-validation

$LLVM2_BUILD/bin/llvm-lit -s -Dopt=$ALIVE2_HOME/alive2/build/opt-alive.sh $LLVM2_HOME/llvm/test

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.

2 participants