This is an archive of the discontinued LLVM Phabricator instance.

[ValueTracking] Instruction::isBinaryOp should be used for constexprs
ClosedPublic

Authored by aqjune on Jul 26 2020, 4:53 AM.

Details

Summary

This is a simple patch that makes canCreateUndefOrPoison use
Instruction::isBinaryOp because BinaryOperator inherits Instruction.

Diff Detail

Event Timeline

aqjune created this revision.Jul 26 2020, 4:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 26 2020, 4:53 AM
nikic accepted this revision.Jul 26 2020, 5:43 AM

LGTM

This revision is now accepted and ready to land.Jul 26 2020, 5:43 AM
This revision was automatically updated to reflect the committed changes.