Unverified Commit 40e2bb53 authored by Finn Plummer's avatar Finn Plummer Committed by GitHub
Browse files

[mlir][spirv] Add folding for Bitwise[Or|And|Xor] (#74193)

Add missing constant propogation folder for Bitwise[Or|And|Xor].

Move previous Bitwise[Or|And] fold implementations to
SPIRVCanonicalization for consistency.

Implement additional folding when lhs == rhs and rhs = 0 for Xor. As
well as, update an Xor testcase to account for this introduced folding.

This helps for readability of lowered code into SPIR-V.

Part of work for #70704
parent ef314d39
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment