[PATCH] D123014: [X86][FastISel] Remove with.overflow + select fold (PR54369)

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 4 01:29:40 PDT 2022


nikic created this revision.
nikic added reviewers: RKSimon, craig.topper, pengfei.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
nikic requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This is an alternative to D122825 <https://reviews.llvm.org/D122825>. Instead of trying to account for possible EFLAGS clobber by constant materialization, remove the with.overflow + select fold entirely, on the premise that non-trivial/fragile folds like this don't belong in FastISel. I've kept the with.overflow + br fold for now, as we don't have any known issues for that one.

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


https://reviews.llvm.org/D123014

Files:
  llvm/lib/Target/X86/X86FastISel.cpp
  llvm/test/CodeGen/X86/pr54369.ll
  llvm/test/CodeGen/X86/xaluo.ll
  llvm/test/CodeGen/X86/xmulo.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123014.420119.patch
Type: text/x-patch
Size: 9289 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220404/f638974c/attachment.bin>


More information about the llvm-commits mailing list