[PATCH] D58096: [LowerSwitch][AMDGPU] Do not handle impossible values

Roman Tereshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 11 21:09:05 PST 2019


rtereshin created this revision.
rtereshin added reviewers: arsenm, bruno.
Herald added subscribers: llvm-commits, jdoerfert, t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng, jvesely, kzhuravl.
Herald added a project: LLVM.

This patch adds LazyValueInfo to LowerSwitch to compute the range of the
value being switched over and reduce the size of the tree LowerSwitch
builds to lower a switch.


Repository:
  rL LLVM

https://reviews.llvm.org/D58096

Files:
  lib/Transforms/Utils/LowerSwitch.cpp
  test/CodeGen/AMDGPU/valu-i1.ll
  test/Transforms/LowerSwitch/do-not-handle-impossible-values.ll
  test/Transforms/Util/lowerswitch.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58096.186392.patch
Type: text/x-patch
Size: 29414 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190212/5857022d/attachment.bin>


More information about the llvm-commits mailing list