craig.topper added a subscriber: craig.topper.
craig.topper added a comment.

The summary of why this is ok is slightly misleading. The backend won't try to 
encode the TZCNT instruction when the BMI feature is not enabled. Notice this 
just maps the to the generic non-x86 specific __builtin_ctz. The backend will 
emit a regular BSF instruction if BMI is not supported. There will be a zero 
check around it unless the backend can prove that the input is not 0.


Repository:
  rL LLVM

http://reviews.llvm.org/D14748



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to