[PATCH] D33802: [AMDGPU] Preserve operand order in SIFoldOperands

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 1 14:33:39 PDT 2017


rampitec created this revision.
Herald added subscribers: t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng, kzhuravl.

SIFoldOperands can commute operands even if no folding was done.
This change is to preserve IR is no folding was done.


Repository:
  rL LLVM

https://reviews.llvm.org/D33802

Files:
  lib/Target/AMDGPU/SIFoldOperands.cpp
  test/CodeGen/AMDGPU/commute-compares.ll
  test/CodeGen/AMDGPU/insert_vector_elt.v2i16.ll
  test/CodeGen/AMDGPU/sub.i16.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33802.101115.patch
Type: text/x-patch
Size: 10527 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170601/6aab0b2e/attachment.bin>


More information about the llvm-commits mailing list