[PATCH] D15508: [JumpThreading] Split select that has constant conditions coming from the PHI node

Jun Bum Lim via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 4 10:55:30 PST 2016


junbuml added inline comments.

================
Comment at: lib/Transforms/Scalar/JumpThreading.cpp:1950-1953
@@ +1949,6 @@
+
+    if (!hasConst)
+      continue;
+
+    return SI;
+  }
----------------
I think  you can return SI when hasConst is true : 

  if (hasConst)
    return SI;


Repository:
  rL LLVM

http://reviews.llvm.org/D15508





More information about the llvm-commits mailing list