[PATCH] D50332: AMDGPU: Turn class x, p_zero|n_zero into fcmp oeq x, 0
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 7 23:39:44 PDT 2018
arsenm added inline comments.
================
Comment at: lib/Transforms/InstCombine/InstCombineCalls.cpp:3266
+ Value *FCmp = Builder.CreateFCmpOEQ(
+ Src0, ConstantFP::get(Src0->getType(), 0.0));
+
----------------
rampitec wrote:
> Is it really true for -0?
Yes, -0.0 and 0.0 compare equal
https://reviews.llvm.org/D50332
More information about the llvm-commits
mailing list