If both OpA and OpB is an add with NSW/NUW and with the same LHS operand,
we can guarantee that the transformation is safe if we can prove that OpA
won't overflow when IdxDiff added to the RHS of OpA.
Details
Details
Diff Detail
Diff Detail
Event Timeline
llvm/test/Transforms/LoadStoreVectorizer/X86/vectorize-i8-nested-add.ll | ||
---|---|---|
11 | Can you reduce this any further? Also could use some negative cases where the flags don't match up |
llvm/test/Transforms/LoadStoreVectorizer/X86/vectorize-i8-nested-add.ll | ||
---|---|---|
11 | Do you mean reducing the number of loads? I added 4 loads to make sure we test different patterns. |
Comment Actions
- Reduced the test and the number of check lines.
- Added a test with nuw.
- Added a negative test.
Can you reduce this any further?
Also could use some negative cases where the flags don't match up