[PATCH] D80388: InstSimplify: Add constant folding/simplify for ldexp intrinsic

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 21 10:48:16 PDT 2020


arsenm created this revision.
arsenm added reviewers: foad, nhaehnle, b-sumner, spatel, craig.topper, majnemer, hfinkel, sepavloff.
Herald added subscribers: kerbowa, hiraditya, tpr, wdng, jvesely.
Herald added a project: LLVM.

Not sure about the policy on target intrinsics in InstructionSimplify
since there don't seem to be any others. However we do in
ConstantFolding and instcombine already. Some of the existing AMDGPU
intrinsic simplifications are in instcombine that really belong here
since they don't introduce new instructions.

I also noticed we seem to now be interpreting strictfp attributes on intrinsic call sites,
so try to handle that.


https://reviews.llvm.org/D80388

Files:
  llvm/lib/Analysis/ConstantFolding.cpp
  llvm/lib/Analysis/InstructionSimplify.cpp
  llvm/test/Analysis/ConstantFolding/AMDGPU/ldexp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80388.265538.patch
Type: text/x-patch
Size: 20816 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200521/dc16f9b6/attachment.bin>


More information about the llvm-commits mailing list