[PATCH] D17473: [LoopUnroll] Avoid unnecessary DT recomputation.
Mehdi AMINI via llvm-commits
llvm-commits at lists.llvm.org
Tue May 31 15:24:23 PDT 2016
mehdi_amini added inline comments.
================
Comment at: llvm/trunk/lib/Transforms/Utils/LoopUnroll.cpp:579
@@ -534,1 +578,3 @@
+ else
+ DEBUG(DT->verifyDomTree());
----------------
If DT is null, this will always break (the test will be false, the else branch taken, and the nullptr dereferenced).
Clang can be smart and eliminate your null check as well, deducing that it is not possible for it to be null.
Repository:
rL LLVM
http://reviews.llvm.org/D17473
More information about the llvm-commits
mailing list