HomePhabricator

Implement constant folding for DivFOp

Authored by jacksonfellows on Jan 19 2021, 2:41 PM.

Description

Implement constant folding for DivFOp

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).

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D94939

Details

Committed
mehdi_aminiJan 19 2021, 3:08 PM
Reviewer
ftynse
Differential Revision
D94939: Implement constant folding for DivFOp
Parents
rG96ef4f307df2: Revert "[WebAssembly] call_indirect issues table number relocs"
Branches
Unknown
Tags
Unknown