[PATCH] D131169: [InstSimplify] Fold fcmp with dominating assume
Parth Shastri via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 4 07:23:41 PDT 2022
cppio created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
cppio requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Fold float comparisons like x >= y after assume(x > y). This treats fcmp like icmp, which already has this optimization.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D131169
Files:
llvm/lib/Analysis/AssumptionCache.cpp
llvm/lib/Analysis/InstructionSimplify.cpp
llvm/lib/Analysis/ValueTracking.cpp
llvm/lib/IR/Instructions.cpp
llvm/test/Transforms/InstSimplify/assume_cmp.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131169.449961.patch
Type: text/x-patch
Size: 11595 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220804/36bc9fd0/attachment.bin>
More information about the llvm-commits
mailing list