aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Unix/Unix.h
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2022-11-11 11:35:14 -0800
committerMatt Arsenault <Matthew.Arsenault@amd.com>2022-11-18 10:35:19 -0800
commit841a0edd030d4cce2e6b764996d3372773d0089b (patch)
tree6cc2918a56d25976ebe5b9cd5f1be5b3aafea3a3 /llvm/lib/Support/Unix/Unix.h
parent184fbfd7123fecc430c1285531d97ce61c608533 (diff)
downloadllvm-841a0edd030d4cce2e6b764996d3372773d0089b.zip
llvm-841a0edd030d4cce2e6b764996d3372773d0089b.tar.gz
llvm-841a0edd030d4cce2e6b764996d3372773d0089b.tar.bz2
ConstantFolding: Constant fold some canonicalizes
+/-0 is obviously foldable. Other non-special, non-subnormal values are also probably OK. For denormal values, check the calling function's denormal mode. For now, don't fold denormals to the input for IEEE mode because as far as I know the langref is still pretending LLVM's float isn't IEEE. Also folds undef to 0, although NaN may make more sense. Skips folding nans and infinities, although it should be OK to fold those in a future change.
Diffstat (limited to 'llvm/lib/Support/Unix/Unix.h')
0 files changed, 0 insertions, 0 deletions