summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU/vector-extract-insert.ll
diff options
context:
space:
mode:
authorEaswaran Raman <eraman@google.com>2017-02-18 17:22:52 +0000
committerEaswaran Raman <eraman@google.com>2017-02-18 17:22:52 +0000
commit617f63640bc6a12218e3dcb01451d6653a2609f0 (patch)
tree1628c35e73d4770030f5c87a289e0e2b8d67e037 /llvm/test/CodeGen/AMDGPU/vector-extract-insert.ll
parent28492b85e2be14d8ba60d3d876c9c27222073f95 (diff)
downloadbcm5719-llvm-617f63640bc6a12218e3dcb01451d6653a2609f0.tar.gz
bcm5719-llvm-617f63640bc6a12218e3dcb01451d6653a2609f0.zip
Refactor instruction simplification code in visitors. NFC.
Several visitors check if operands to the instruction are constants, either as it is or after looking up SimplifiedValues, check if the result is a constant and update the SimplifiedValues map. This refactoring splits it into a common function that does the checking of whether the operands are constants and updating of the SimplifiedValues table, and an instruction specific part that is implemented by each instruction visitor as a lambda and passed to the common function. Differential revision: https://reviews.llvm.org/D30104 llvm-svn: 295552
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/vector-extract-insert.ll')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud