[PATCH] D151937: InstCombine: Recognize fabs as bitcasted integer

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 1 14:07:45 PDT 2023


arsenm created this revision.
arsenm added reviewers: foad, jcranmer-intel, spatel, aarzee, scanon, majnemer, mehdi_amini, nikic, andrew.w.kaylor, sepavloff, resistor, efriedma.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
arsenm requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

In the past we sort of pretended float might be implementable
as a non-IEEE type but that never realistically would work. Exotic
FP types would need to be added to the IR. Turning these
into FP operations enables FP tracking optimizations.


https://reviews.llvm.org/D151937

Files:
  llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  llvm/test/Transforms/InstCombine/fabs-as-int.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151937.527608.patch
Type: text/x-patch
Size: 9635 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230601/fd824f1d/attachment.bin>


More information about the llvm-commits mailing list