aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/Module.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2023-05-25 11:01:19 -0700
committerCraig Topper <craig.topper@sifive.com>2023-05-25 11:01:19 -0700
commit8cdbf8d3e7b88da376a09a58ddd1fcc00cf30bb2 (patch)
treeb181d42d6469ae7c5e6959f51544ca8eea408693 /clang/lib/Basic/Module.cpp
parent8f7b51e4ec09f6f50ea6508a196ec607f0659179 (diff)
downloadllvm-8cdbf8d3e7b88da376a09a58ddd1fcc00cf30bb2.zip
llvm-8cdbf8d3e7b88da376a09a58ddd1fcc00cf30bb2.tar.gz
llvm-8cdbf8d3e7b88da376a09a58ddd1fcc00cf30bb2.tar.bz2
[SelectionDAG][AArch64][ARM] Remove setFlags call from DAGTypeLegalizer::SetPromotedInteger.
This was originally added to preserve FMF on SETCC. Unfortunately, it also incorrectly preserves nuw/nsw on ADD/SUB in some cases. There's also no guarantee the new opcode is even the same opcode as the original node. This patch removes the code and adds code to explicitly preserve FMF flags in the SETCC promotion function. The other test changes are from nuw/nsw not being preserved. I believe for all these tests it was correct to preserve the flags, so we need new code to preserve the flags when possible. I'll post another patch for that since it's a riskier change. This should unblock D150769. Differential Revision: https://reviews.llvm.org/D151472
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions