This is an archive of the discontinued LLVM Phabricator instance.

Implement constant folding for DivFOp
ClosedPublic

Authored by jacksonfellows on Jan 18 2021, 7:11 PM.

Details

Summary

Add a constant folder for DivFOp. Analogous to existing folders for
AddFOp, SubFOp, and MulFOp. Matches the behavior of existing LLVM
constant folding (https://github.com/llvm/llvm-project/blob/999f5da6b3088fa4c0bb9d05b358d015ca74c71f/llvm/lib/IR/ConstantFold.cpp#L1432).

Diff Detail

Event Timeline

jacksonfellows created this revision.Jan 18 2021, 7:11 PM
jacksonfellows requested review of this revision.Jan 18 2021, 7:11 PM
ftynse accepted this revision.Jan 19 2021, 12:15 AM
This revision is now accepted and ready to land.Jan 19 2021, 12:15 AM

I do not have commit access (first-time contributor). Would a reviewer be able to commit this change?

This revision was automatically updated to reflect the committed changes.