This is an archive of the discontinued LLVM Phabricator instance.

[SVE] Fix bug in SVEIntrinsicOpts::optimizePTest
ClosedPublic

Authored by david-arm on Aug 13 2020, 3:46 AM.

Details

Summary

The code wasn't taking into account that the two operands
passed to ptest could be identical and was trying to erase
them twice.

Diff Detail

Event Timeline

david-arm created this revision.Aug 13 2020, 3:46 AM
david-arm requested review of this revision.Aug 13 2020, 3:46 AM
efriedma accepted this revision.Aug 13 2020, 3:49 AM

LGTM

llvm/test/CodeGen/AArch64/sve-intrinsic-opts-ptest.ll
51

Might want to consider regenerating this test file using update_test_checks.py; easier than trying to write precise CHECK lines by hand. But doesn't need to be this patch.

This revision is now accepted and ready to land.Aug 13 2020, 3:49 AM
This revision was landed with ongoing or failed builds.Aug 13 2020, 11:57 PM
This revision was automatically updated to reflect the committed changes.