+/-0 is obviously foldable. Other non-special, non-subnormal
values are also probably OK.
Also folds undef to 0, even though based on the users it
may make more sense to fold to 1 (e.g. fmul fast x, canonicalize(undef))
Paths
| Differential D37999
InstSimplify: Constant fold some canonicalizes AbandonedPublic Authored by arsenm on Sep 18 2017, 2:18 PM.
Revision Contents
Diff 115720 include/llvm/IR/Constants.h
lib/Analysis/InstructionSimplify.cpp
lib/IR/Constants.cpp
test/Transforms/InstCombine/maxnum.ll
test/Transforms/InstCombine/minnum.ll
test/Transforms/InstSimplify/canonicalize.ll
|