[PATCH] D151939: InstCombine: Recognize fneg(fabs) as bitcasted integer

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 1 14:10:50 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.

Technically increases the number of instructions if the
result isn't cast back to float. Even in this case it's
still probably a better canonical form since it enables FP value
tracking.


https://reviews.llvm.org/D151939

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151939.527614.patch
Type: text/x-patch
Size: 10711 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230601/784c8119/attachment.bin>


More information about the llvm-commits mailing list