This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine]add testcases for folding more SPFofSPF pattern
ClosedPublic

Authored by shchenz on Jul 12 2018, 1:56 AM.

Details

Summary

This is from D48754.

Since we can recognize more negative operand pairs in function isKnownNegation() in D49216, we can recognize more abs pattern.

These are test cases for later patch which recognizes more ABS pattern and so we can have more SPFofSPF optimization opportunities.

Diff Detail

Repository
rL LLVM

Event Timeline

spatel accepted this revision.Jul 12 2018, 6:26 AM

LGTM.

This revision is now accepted and ready to land.Jul 12 2018, 6:26 AM
This revision was automatically updated to reflect the committed changes.