[PATCH] D149896: [AggressiveInstCombine] Only fold consecutive shifts of loads with constant shift amounts

Arthur Eubanks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 4 13:09:24 PDT 2023


aeubanks created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
aeubanks requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This is what the code assumed but never actually checked.

Fixes https://github.com/llvm/llvm-project/issues/62509.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D149896

Files:
  llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
  llvm/test/Transforms/AggressiveInstCombine/X86/or-load.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149896.519625.patch
Type: text/x-patch
Size: 4850 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230504/73b27c7a/attachment.bin>


More information about the llvm-commits mailing list