Allows for better matching of VOP3 mods.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp | ||
---|---|---|
5206 | Doing this for -0 is only valid with nsz: https://alive2.llvm.org/ce/z/SK2Bs9 | |
5206 | I mean +0 | |
5211 | This changes a canonicalizing operation to a non-canonicalizing operation. You need to introduce a canonicalize unless you know denormals aren't flushed and the source isn't a signaling nan. InstCombine currently has a bug where it ignores this. The DAG also has getNegatedExpression, which may be overkill at this moment |
Comments
llvm/test/CodeGen/AMDGPU/GlobalISel/combine-fsub-fneg.mir | ||
---|---|---|
368 | There's already a test "test_v4f32_negzero_undef_nofold". Do we want that to fold or not? I updated it and added another one for poszero. |
Probably should allow undefs