================
@@ -795,12 +795,29 @@ static void addSanitizers(const Triple &TargetTriple,
     PB.registerOptimizerLastEPCallback(SanitizersCallback);
   }
 
-  if (LowerAllowCheckPass::IsRequested()) {
+  bool lowerAllowCheck = LowerAllowCheckPass::IsRequested();
----------------
thurstond wrote:

Even after removing the epsilon check, isn't it still more efficient to have 
check if any of the cutoffs are non-zero?

If all the cutoffs are zero, CodeGen would not have inserted any 
llvm.allow.ubsan.check, hence we don't need to call the lowering pass.


https://github.com/llvm/llvm-project/pull/124857
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to