summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorCongzhe Cao <congzhe.cao@huawei.com>2022-11-04 00:07:42 -0400
committerCongzheUalberta <congzhecao@gmail.com>2022-11-04 00:20:52 -0400
commit75b33d6bd518f6502a63f96e79c0f4be3691b1d5 (patch)
treeb22d5724716bb4a4ec5e664b7ea19dd142745d69 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parente419620fc2f55cbc2decd468778376ec08d0190d (diff)
[LoopInterchange] Check phis in all subloops
This is the bugfix to the miscompile mentioned in https://reviews.llvm.org/D132055#3814831. The IR that reproduced the bug is added as the test case in this patch. What this patch does is that, during legality phase instead of checking the phi nodes only in `InnerLoop` and `OuterLoop`, we check phi nodes in all subloops of the `OuterLoop`. Suppose if the loop nest is triply nested, and `InnerLoop` and `OuterLoop` is the middle loop and the outermost loop respectively, we'll check phi nodes in the innermost loop as well, in addition to the ones in the middle and outermost loops. Reviewed By: Meinersbur, #loopoptwg Differential Revision: https://reviews.llvm.org/D134930
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions