[PATCH] D115832: [DFAJumpThreading] Determinator BB should precede switch-defining BB

Alexey Zhikhartsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 15 14:40:23 PST 2021


alexey.zhikhar created this revision.
alexey.zhikhar added reviewers: SjoerdMeijer, amehsan.
Herald added subscribers: pengfei, hiraditya.
alexey.zhikhar requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Otherwise, it is possible that the state defined in the determinator
block defines the state for the next iteration of the loop, rather than
for the current one.

      

Fixes llvm-test-suite's
SingleSource/Regression/C/gcc-c-torture/execute/pr80421.c
on X86.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D115832

Files:
  llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp
  llvm/test/Transforms/DFAJumpThreading/dfa-jump-threading-analysis.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115832.394662.patch
Type: text/x-patch
Size: 3669 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211215/e2a4dafe/attachment.bin>


More information about the llvm-commits mailing list