[PATCH] D52172: AMDGPU: Don't form fmed3 if it will require materialization
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 17 07:24:15 PDT 2018
arsenm created this revision.
arsenm added a reviewer: rampitec.
Herald added subscribers: t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng, jvesely, kzhuravl.
If there is a single use constant, it can be folded into the
min/max, but not into med3.
https://reviews.llvm.org/D52172
Files:
lib/Target/AMDGPU/SIISelLowering.cpp
test/CodeGen/AMDGPU/clamp.ll
test/CodeGen/AMDGPU/fmed3.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52172.165767.patch
Type: text/x-patch
Size: 4784 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180917/1f3ac409/attachment.bin>
More information about the llvm-commits
mailing list