[PATCH] D70595: [TargetLowering] Allow constants with multiple uses

David Stuttard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 27 07:22:33 PST 2019


dstuttard updated this revision to Diff 231257.
dstuttard added a comment.

Changed the implementation slightly.
Now the isNegatibleForFree includes a bool for allowing multi-use
constants. This is only set to true for calls from getNegatedExpression so it
only allows for the situation where a constant becomes multi-use during
getNegatedExpression recursive evaluation.

This makes all the existing lit tests pass again (with no changes).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D70595/new/

https://reviews.llvm.org/D70595

Files:
  llvm/include/llvm/CodeGen/TargetLowering.h
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/lib/Target/X86/X86ISelLowering.h
  llvm/test/CodeGen/AMDGPU/const-multiuse-tl.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70595.231257.patch
Type: text/x-patch
Size: 16061 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191127/d79f8b80/attachment.bin>


More information about the llvm-commits mailing list