[PATCH] D122900: [x86] Disable optimization involved in an infinite loop inside DAG combiner.
pierre gousseau via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 4 11:04:15 PDT 2022
pgousseau updated this revision to Diff 420219.
pgousseau added a comment.
@RKSimon suggested the transformation might be caused by unneeded trunc/zext operations.
It is causing the DAG combiner to needlessly sink them under the OR operations so I have removed them where possible and this fixes the infinite loop.
The instructions generated end up being reordered is some cases but I think it is equivalent.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122900/new/
https://reviews.llvm.org/D122900
Files:
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/lzcnt-zext-cmp.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122900.420219.patch
Type: text/x-patch
Size: 3620 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220404/dd784b18/attachment.bin>
More information about the llvm-commits
mailing list