[PATCH] D87850: Fold the comparison of bitcasted global values
Shimin Cui via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 17 12:24:53 PDT 2020
scui created this revision.
scui added a reviewer: jsji.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
scui requested review of this revision.
This is to simplify icmp instructions in the form like:
%cmp = icmp eq i32 (i8*, i8*)* bitcast (i32 (i32**, i32**)* @f32 to i32 (i8*, i8*)), bitcast (i32 (i64**, i64**) @f64 to i32 (i8*, i8*)*)
Here @f32 and @f64 are two functions.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D87850
Files:
llvm/lib/IR/ConstantFold.cpp
llvm/test/Transforms/InstCombine/2004-11-27-SetCCForCastLargerAndConstant.ll
llvm/test/Transforms/InstCombine/icmp-bitcast-func.ll
llvm/test/Transforms/InstCombine/pr32686.ll
llvm/test/Transforms/SCCP/ip-ranges-select.ll
llvm/test/Transforms/SCCP/undef-resolve.ll
llvm/test/Transforms/SimplifyCFG/PR17073.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87850.292580.patch
Type: text/x-patch
Size: 8146 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200917/3e68b2b2/attachment.bin>
More information about the llvm-commits
mailing list