[flang-commits] [PATCH] D127805: Bitwise comparison intrinsics

Tarun Prabhu via Phabricator via flang-commits flang-commits at lists.llvm.org
Mon Jul 4 10:25:59 PDT 2022


tarunprabhu updated this revision to Diff 442121.
tarunprabhu added a comment.

The intermediate declarations have been skipped in favor of direct calls to genBitwiseCompare as suggested by @vdonaldson

If both the arguments to the intrinsics are constant, fold the constant. The constants are zero-extended to the largest possible integer.

The tests have been updated to reflect these changes.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D127805/new/

https://reviews.llvm.org/D127805

Files:
  flang/lib/Evaluate/fold-logical.cpp
  flang/lib/Lower/IntrinsicCall.cpp
  flang/test/Lower/Intrinsics/bge.f90
  flang/test/Lower/Intrinsics/bgt.f90
  flang/test/Lower/Intrinsics/ble.f90
  flang/test/Lower/Intrinsics/blt.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127805.442121.patch
Type: text/x-patch
Size: 36531 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220704/3ff87f00/attachment-0001.bin>


More information about the flang-commits mailing list