llvm-project
989d8944 - Revert 216506 Add PreLegalizer pattern matching for degrees GL extension (#239353)

Commit
7 days ago
Revert 216506 Add PreLegalizer pattern matching for degrees GL extension (#239353) This reverts commit 4e414afe0e3f1566b898c5c5741e2582c5c48514. The combine rewrites fmul x, 180/pi into spv.degrees for all SPIR-V targets. OpenCL requires fmul to be correctly rounded (0.5 ulp) while degrees only has to be accurate to 2 ulp, so this loses precision on the OpenCL path. The discussions have been captured in the now closed PR about why we want to revert it https://github.com/llvm/llvm-project/pull/237935/changes
Author
Parents
Loading