Page MenuHomePhabricator

[Sparc] Fix incorrect operand for matching CMPri pattern
ClosedPublic

Authored by Jim on Feb 26 2020, 9:27 PM.

Details

Summary

It should be normal constant instead of target constant.
Pattern CMPri can be matched if the constant can be fitted into immediate field.
Otherwise, pattern CMPrr will be matched.
This fixed bug https://bugs.llvm.org/show_bug.cgi?id=44091.

Diff Detail

Event Timeline

Jim created this revision.Feb 26 2020, 9:27 PM
jonpa removed a reviewer: jonpa.Feb 27 2020, 9:41 AM
jonpa added a subscriber: jonpa.
This revision is now accepted and ready to land.Feb 27 2020, 10:16 AM
This revision was automatically updated to reflect the committed changes.