This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Add splat vector constant support to foldICmpAddOpConst.
ClosedPublic

Authored by craig.topper on Aug 19 2018, 11:05 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

craig.topper created this revision.Aug 19 2018, 11:05 AM
spatel accepted this revision.Aug 20 2018, 3:02 PM

Not sure how good the scalar test coverage is, but we can do better for the vector tests:

  1. The 'ugt' test is getting transformed to 'ult', so there's not actually a test for 'ugt'?
  2. Add a test for the 'sgt' case?

Code LGTM.

This revision is now accepted and ready to land.Aug 20 2018, 3:02 PM
This revision was automatically updated to reflect the committed changes.