[PATCH] D45022: [X86] Mark all byval parameters as aliased

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 3 09:44:22 PDT 2018


spatel added a comment.

In https://reviews.llvm.org/D45022#1086594, @jmorse wrote:

> Improves comments in test description, use utils/update_llc_test_checks.py to generate CHECK lines in test.
>
> @spatel just to confirm I understand you correctly, you're saying to commit the test first (where it would fail) followed by the code change that fixes it, to discourage unconsidered reversion, yes?


Correct. You can commit the test right now (with auto-generated CHECK lines that show the bug). Add a FIXME comment too to be extra clear that the output shown is a miscompile.
After that commit, apply your code fix locally, rebuild llc, and regenerate the CHECK lines using the script. There will only be a couple of lines changing in the test file now. Upload the complete rebased diff here. Then, we'll have a patch that clearly shows that the miscompile that was present will be fixed with this patch.


https://reviews.llvm.org/D45022





More information about the llvm-commits mailing list