MaskRay created this revision. MaskRay added reviewers: danielkiss, pcc. Herald added subscribers: StephenFan, hiraditya, kristof.beyls. Herald added a project: All. MaskRay requested review of this revision. Herald added a reviewer: jdoerfert. Herald added subscribers: llvm-commits, cfe-commits, sstefan1. Herald added projects: clang, LLVM.
These module flags use the Min merge behavior with a default value of zero, so we don't need to emit them if zero. Also delete the AutoUpgrade.cpp code. The previous Error behavior is compatible with the new Min behavior. The Min behavior makes an absent value zero but this property isn't so strongly needed. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D130145 Files: clang/lib/CodeGen/CodeGenModule.cpp clang/test/CodeGen/aarch64-ls64-inline-asm.c clang/test/CodeGen/aarch64-ls64.c clang/test/CodeGen/aarch64-sign-return-address.c clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_ld1.c clang/test/CodeGen/arm-branch-protection-attr-2.c clang/test/OpenMP/distribute_parallel_for_simd_if_codegen.cpp clang/test/OpenMP/distribute_parallel_for_simd_num_threads_codegen.cpp clang/test/OpenMP/target_teams_distribute_parallel_for_simd_if_codegen.cpp clang/test/OpenMP/teams_distribute_parallel_for_simd_if_codegen.cpp llvm/lib/IR/AutoUpgrade.cpp _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits