[PATCH] D35218: [AMDGPU] fcanonicalize elimination optimization

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 10 12:40:43 PDT 2017


rampitec added inline comments.


================
Comment at: lib/Target/AMDGPU/SIISelLowering.cpp:4638
+
+  case ISD::FCANONICALIZE:
+    return true;
----------------
rampitec wrote:
> arsenm wrote:
> > fcanonicalize should have the idempotent optimization applied so there shouldn't be a need to handle it
> It is not:
> ```
>         v_mul_f32_e32 v2, 1.0, v2
>         v_mul_f32_e32 v2, 1.0, v2
> ```
And I do not think there are idempotent SDNodes.


https://reviews.llvm.org/D35218





More information about the llvm-commits mailing list