[PATCH] D149542: [MergeICmps] Don't reorder the comparison chain

Allen zhong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 30 02:30:56 PDT 2023


Allen created this revision.
Allen added reviewers: nikic, aeubanks, RKSimon, efriedma.
Herald added subscribers: StephenFan, mgrang, hiraditya.
Herald added a project: All.
Allen requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The address of the comparison value is expected from small to large,
so we can't reorder the comparison chain to judge the areContiguous.
Fix https://github.com/llvm/llvm-project/issues/62459


https://reviews.llvm.org/D149542

Files:
  llvm/lib/Transforms/Scalar/MergeICmps.cpp
  llvm/test/Transforms/MergeICmps/X86/entry-block-shuffled-2.ll
  llvm/test/Transforms/MergeICmps/X86/no-gep-other-work.ll
  llvm/test/Transforms/MergeICmps/X86/pair-int32-int32.ll
  llvm/test/Transforms/MergeICmps/X86/pr62459.ll
  llvm/test/Transforms/MergeICmps/X86/split-block-does-work.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149542.518284.patch
Type: text/x-patch
Size: 13672 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230430/c54a7c88/attachment.bin>


More information about the llvm-commits mailing list