[PATCH] D30416: [BitfieldShrinking] Shrink Bitfields load/store when the bitfields are legal to access independently

Wei Mi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 28 16:20:08 PDT 2017


wmi updated this revision to Diff 97170.
wmi added a comment.
Herald added a subscriber: nhaehnle.

Address Eli, Matt and Chandler's comments.

Some major changes:

- A lot of comments changed.
- split reduceLoadOpsStoreWidth into two and several other helper functions.
- refactor RecursivelyDeleteTriviallyDeadInstructions.


Repository:
  rL LLVM

https://reviews.llvm.org/D30416

Files:
  include/llvm/Analysis/MemorySSAUpdater.h
  include/llvm/CodeGen/Passes.h
  include/llvm/IR/PatternMatch.h
  include/llvm/InitializePasses.h
  include/llvm/LinkAllPasses.h
  include/llvm/Target/TargetLowering.h
  include/llvm/Transforms/Utils/Local.h
  lib/Analysis/MemorySSAUpdater.cpp
  lib/CodeGen/CMakeLists.txt
  lib/CodeGen/CodeGen.cpp
  lib/CodeGen/MemAccessShrinking.cpp
  lib/CodeGen/TargetPassConfig.cpp
  lib/Target/AMDGPU/AMDGPUISelLowering.cpp
  lib/Target/AMDGPU/AMDGPUISelLowering.h
  lib/Transforms/Utils/Local.cpp
  test/CodeGen/ARM/illegal-bitfield-loadstore.ll
  test/CodeGen/ARM/load-shrink.ll
  test/CodeGen/ARM/store-shrink.ll
  test/CodeGen/X86/2008-09-11-CoalescerBug2.ll
  test/CodeGen/X86/constant-combines.ll
  test/CodeGen/X86/i16lshr8pat.ll
  test/CodeGen/X86/illegal-bitfield-loadstore.ll
  test/CodeGen/X86/load-shrink.ll
  test/CodeGen/X86/load-slice.ll
  test/CodeGen/X86/lsr-loop-exit-cond.ll
  test/CodeGen/X86/mem-access-shrink.ll
  test/CodeGen/X86/store-shrink.ll
  tools/opt/opt.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30416.97170.patch
Type: text/x-patch
Size: 115111 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170428/ce28a530/attachment-0001.bin>


More information about the llvm-commits mailing list