This avoids TypeSize-related warnings.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Time | Test | |
---|---|---|
70 ms | x64 windows > LLVM.CodeGen/XCore::threads.ll |
Event Timeline
Comment Actions
Uploaded this patch without tests for now. I had a go at writing some tests that invoke the modified codepath here, but I couldn't come up with anything small that would produce a TypeSize-related warnings.
Comment Actions
Address @david-arm's comments.
- Fix use of incorrect intrinsic.
- Use getVectorMinElements() instead of getVectorElementCount().getKnownMinValue().
llvm/test/CodeGen/AArch64/dag-combine-insert-subvector.ll | ||
---|---|---|
10 | It's more robust not to test for specific warnings, but just check no warnings are emitted at all. When the time comes that the warning becomes an error, all tests are still guaranteed to pass. |
Comment Actions
Address @sdesmalen's comment.
- Do not test for specific warnings, but for all warnings.
You can use getVectorMinNumElements() here if you want?