[PATCH] D138082: GlobalISel: ComputeNumSignBits from load range metadata

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 15 17:25:07 PST 2022


arsenm created this revision.
arsenm added reviewers: paquette, aemerson, dsanders, Pierre-vh, foad, craig.topper, RKSimon, spatel.
Herald added subscribers: kosarev, StephenFan, kerbowa, hiraditya, jvesely.
Herald added a project: All.
arsenm requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

We're missing SimplifyDemandedBits styles of optimizations,
so one case differs from the DAG from not trimming the constant.
The other case is an optimization we get that the DAG doesn't do to
split the 64-bit shift.


https://reviews.llvm.org/D138082

Files:
  llvm/include/llvm/CodeGen/GlobalISel/GenericMachineInstrs.h
  llvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp
  llvm/test/CodeGen/AMDGPU/load-range-metadata-sign-bits.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138082.475645.patch
Type: text/x-patch
Size: 7146 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221116/f8a59c8d/attachment-0001.bin>


More information about the llvm-commits mailing list